BEW icon
Page Builders & Blocks

BEW hooks reference

  • By Bosa Themes
  • v2.1.3
  • Updated

BEW 2.1.3 has 6 actions and 16 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when BEW fires an action
add_action( 'bew_woo_widget_zero_rating', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value BEW is about to use
add_filter( 'bew_ai_provider_model_fetchers', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • admin/ai-provider-models.php line 393
    /**
     * Filter the map of provider type => callable that fetches its live model
     * list.
     */
    apply_filters( 'bew_ai_provider_model_fetchers', [ 'openai' => 'bew_fetch_openai_models', 'anthropic' => 'bew_fetch_anthropic_models', 'google' => 'bew_fetch_google_models', 'xai' => 'bew_fetch_xai_models', 'openrouter' => 'bew_fetch_openrouter_models', 'mistral' => 'bew_fetch_mistral_models', 'groq' => 'bew_fetch_groq_models', ] );
  • admin/ai-text-generator.php line 378
    /**
     * Filter the map of provider type => callable that generates text for it.
     */
    apply_filters( 'bew_ai_provider_text_generators', [ 'openai' => 'bew_generate_openai_text', 'anthropic' => 'bew_generate_anthropic_text', 'google' => 'bew_generate_google_text', 'perplexity' => 'bew_generate_perplexity_text', 'xai' => 'bew_generate_xai_text', 'openrouter' => 'bew_generate_openrouter_text', 'mistral' => 'bew_generate_mistral_text', 'groq' => 'bew_generate_groq_text', ] );
  • admin/ai-provider-types.php line 111
    /**
     * Filter the list of selectable AI provider types.
     */
    apply_filters( 'bew_ai_provider_types', $types );
  • inc/template-library/inc/ai-field-map.php line 357
    /**
     * Filter the AI field-role map, e.g. to add mappings for a plugin not covered
     * here, or override a role label.
     */
    apply_filters( 'bosa_ewc_ai_field_map', $map );
  • widgets/bew-elements-grid-products.php line 1420 · used in 2 places
    do_action( 'bew_woo_widget_zero_rating' );
  • widgets/bew-elements-categories-list.php line 455 · used in 2 places
    apply_filters( 'woocommerce_subcategory_count_html', $term->count, $term );
  • admin/ai-provider-types.php line 183
    apply_filters( 'bew_ai_is_beta', true );
  • bosa-elementor-for-woocommerce.php line 43
    apply_filters( 'bew_enable_template_library', true );
  • inc/bew-common.php line 364
    apply_filters( 'bew_pagination_args', array( 'base' => str_replace($big, '%#%', html_entity_decode(get_pagenum_link($big))), 'format' => $format, 'current' => max(1, $current_page), 'total' => $total, 'mid_size' => 3, 'type' => 'list', 'prev_text' => '<i class="' . $prev_arrow . '"></i>', 'next_text' => '<i class="' . $next_arrow . '"></i>', ) );
  • bosa-elementor-for-woocommerce.php line 522
    apply_filters( 'bew_pro_license', array() );
  • widgets/bew-elements-products-list.php line 1201
    do_action( 'bew_woo_widget_product_hover_image' );
  • widgets/bew-elements-products-list.php line 1197
    do_action( 'bew_woo_widget_quickview_content' );
  • widgets/bew-elements-products-list.php line 1207
    do_action( 'bew_woo_widget_quickview_icon' );
  • widgets/bew-elements-products-list.php line 1234
    do_action( 'bew_woo_widget_sale_countdown' );
  • inc/template-library/frontend/class-importer.php line 82
    do_action( 'bosa_ewc_after_import', $template_id, $import_content );
  • inc/template-library/api/class-api.php line 1332
    apply_filters( 'bosa_ewc_api_template_data', $item, $post, $type );
  • inc/template-library/elementor/class-modal.php line 230
    apply_filters( 'bosa_ewc_category_lists', [] );
  • inc/template-library/frontend/class-importer.php line 58
    apply_filters( 'bosa_ewc_import_data', $decoded, $template_id, $post );
  • inc/template-library/inc/class-remote-client.php line 247
    apply_filters( 'bosa_ewc_remote_http_args', $args, $method );
  • inc/template-library/elementor/class-source.php line 122
    apply_filters( 'bosa_ewc_source_content', $content, $template_id, $post );
  • the_content

    filter
    widgets/bew-elements-blog.php line 1134
    apply_filters( 'the_content', get_the_content() );

Generated from BEW's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: