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.
// 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
-
/** * 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', ] ); -
/** * 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', ] ); -
bew_ai_provider_types
filter/** * Filter the list of selectable AI provider types. */ apply_filters( 'bew_ai_provider_types', $types ); -
bosa_ewc_ai_field_map
filter/** * 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 ); -
bew_woo_widget_zero_rating
actiondo_action( 'bew_woo_widget_zero_rating' ); -
apply_filters( 'woocommerce_subcategory_count_html', $term->count, $term ); -
bew_ai_is_beta
filterapply_filters( 'bew_ai_is_beta', true ); -
bew_enable_template_library
filterapply_filters( 'bew_enable_template_library', true ); -
bew_pagination_args
filterapply_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>', ) ); -
bew_pro_license
filterapply_filters( 'bew_pro_license', array() ); -
do_action( 'bew_woo_widget_product_hover_image' ); -
do_action( 'bew_woo_widget_quickview_content' ); -
do_action( 'bew_woo_widget_quickview_icon' ); -
do_action( 'bew_woo_widget_sale_countdown' ); -
bosa_ewc_after_import
actiondo_action( 'bosa_ewc_after_import', $template_id, $import_content ); -
bosa_ewc_api_template_data
filterapply_filters( 'bosa_ewc_api_template_data', $item, $post, $type ); -
bosa_ewc_category_lists
filterapply_filters( 'bosa_ewc_category_lists', [] ); -
bosa_ewc_import_data
filterapply_filters( 'bosa_ewc_import_data', $decoded, $template_id, $post ); -
bosa_ewc_remote_http_args
filterapply_filters( 'bosa_ewc_remote_http_args', $args, $method ); -
bosa_ewc_source_content
filterapply_filters( 'bosa_ewc_source_content', $content, $template_id, $post ); -
the_content
filterapply_filters( 'the_content', get_the_content() ); -
apply_filters( 'yith_woocompare_remove_compare_link_by_cat', false, $product_id );
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: