WCBoost icon
eCommerce & WooCommerce

WCBoost hooks reference

  • By WCBoost
  • v1.1.2
  • Updated

WCBoost 1.1.2 has 14 actions and 40 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 WCBoost fires an action
add_action( 'wcboost_products_compare_after_compare_table', function( $compare_items ) {
	// Your code runs here.
}, 10, 1 );

// Change a value WCBoost is about to use
add_filter( 'wcboost_products_compare_persistent_enabled', 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

  • includes/compare-list.php line 332 · used in 3 places
    apply_filters( 'wcboost_products_compare_persistent_enabled', true );
  • includes/frontend.php line 296 · used in 2 places
    apply_filters( 'wcboost_products_compare_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) );
  • includes/form-handler.php line 64 · used in 2 places
    apply_filters( 'wcboost_products_compares_add_to_list_redirect', $url, $adding_product );
  • includes/frontend.php line 549
    apply_filters( 'wc_product_enable_dimensions_display', true );
  • includes/ajax-handler.php line 139
    apply_filters( 'wcboost_products_compare_add_to_compare_fragments', $data );
  • includes/helper.php line 217
    apply_filters( 'wcboost_products_compare_add_to_compare_url', $url, $product );
  • templates/compare/compare-table.php line 40
    do_action( 'wcboost_products_compare_after_compare_table', $compare_items );
  • templates/compare/compare.php line 22
    do_action( 'wcboost_products_compare_after_content', $compare_list, $args );
  • includes/frontend.php line 145
    apply_filters( 'wcboost_products_compare_ajax_timeout', 5000 );
  • includes/frontend.php line 721
    apply_filters( 'wcboost_products_compare_attribute_field', $product->get_attribute( $field ), $field, $product );
  • templates/compare/compare-table.php line 19
    do_action( 'wcboost_products_compare_before_compare_table', $compare_items );
  • templates/compare/compare.php line 18
    do_action( 'wcboost_products_compare_before_content', $compare_list, $args );
  • includes/helper.php line 201
    apply_filters( "wcboost_products_compare_button_{$type}_text", $text );
  • includes/helper.php line 182
    apply_filters( 'wcboost_products_compare_button_icon', $svg, $icon );
  • includes/frontend.php line 259
    apply_filters( 'wcboost_products_compare_button_template_args', $args, $product );
  • includes/frontend.php line 222
    apply_filters( 'wcboost_products_compare_button_uses_ajax', true );
  • includes/helper.php line 280
    apply_filters( 'wcboost_products_compare_clear_url', $url );
  • templates/compare/compare.php line 20
    do_action( 'wcboost_products_compare_content', $compare_list, $args );
  • includes/form-handler.php line 55
    apply_filters( 'wcboost_products_compare_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) );
  • includes/frontend.php line 723
    do_action( 'wcboost_products_compare_custom_field', $field, $product, $args );
  • templates/compare/compare-empty.php line 17
    apply_filters( 'wcboost_products_compare_empty_message', __( 'There is no product to compare.', 'wcboost-products-compare' ) );
  • templates/compare/compare-table.php line 31
    do_action( 'wcboost_products_compare_field_content', $field, $_product, $item_key );
  • templates/compare/compare-table.php line 27
    apply_filters( 'wcboost_products_compare_field_label', $field_name, $field );
  • includes/frontend.php line 578
    apply_filters( 'wcboost_products_compare_fields', $compare_fields );
  • includes/frontend.php line 140
    apply_filters( 'wcboost_products_compare_fragments_params', [ 'refresh_on_load' => get_option( 'wcboost_products_compare_ajax_bypass_cache', 'no' ), 'hash_key' => 'wcboost_compare_hash_' . $hash, 'fragment_name' => 'wcboost_compare_fragments_' . $hash, 'list_name' => 'wcboost_compare_' . $hash, 'timeout' => apply_filters( 'wcboost_products_compare_ajax_timeout', 5000 ), ] );
  • includes/compare-list.php line 271
    apply_filters( 'wcboost_products_compare_hash', $hash, $this );
  • includes/install.php line 51
    do_action( 'wcboost_products_compare_installed' );
  • includes/helper.php line 293
    apply_filters( 'wcboost_products_compare_item_key', md5( $product_id ) );
  • includes/frontend.php line 288
    apply_filters( 'wcboost_products_compare_layout', 'table' );
  • includes/compare-list.php line 236
    do_action( 'wcboost_products_compare_list_emptied', $reset_db, $this );
  • includes/admin/settings.php line 31
    apply_filters( 'wcboost_products_compare_page_id_option_exclude', [ wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ), wc_get_page_id( 'cart' ), ] );
  • includes/frontend.php line 121
    apply_filters( 'wcboost_products_compare_params', [ 'page_url' => apply_filters( 'wcboost_products_compares_add_to_list_redirect', wc_get_page_permalink( 'compare' ), null ), 'added_behavior' => get_option( 'wcboost_products_compare_added_behavior' ), 'exists_item_behavior' => get_option( 'wcboost_products_compare_exists_item_button_behaviour', 'remove' ), 'icon_normal' => Helper::get_compare_icon( false ), 'icon_checked' => Helper::get_compar... );
  • includes/frontend.php line 436
    apply_filters( 'wcboost_products_compare_popup_title', __( 'Compare products', 'wcboost-products-compare' ) );
  • includes/compare-list.php line 191
    do_action( 'wcboost_products_compare_product_added', $product_id, $this );
  • includes/compare-list.php line 213
    do_action( 'wcboost_products_compare_product_removed', $product_id, $this );
  • includes/helper.php line 249
    apply_filters( 'wcboost_products_compare_remove_from_compare_url', $url, $product );
  • includes/shortcodes.php line 113
    apply_filters( 'wcboost_products_compare_shortcode_button_html', $html, $atts );
  • includes/helper.php line 156
    apply_filters( 'wcboost_products_compare_svg_icon', $svg, $icon );
  • includes/shortcodes.php line 64
    apply_filters( 'wcboost_products_compare_template_args', $args, $list );
  • templates/compare/compare-widget.php line 69
    do_action( 'wcboost_products_compare_widget_after_contents' );
  • templates/compare/compare-widget.php line 21
    do_action( 'wcboost_products_compare_widget_before_contents' );
  • templates/compare/compare-widget.php line 61
    do_action( 'wcboost_products_compare_widget_buttons' );
  • includes/widgets/products-compare.php line 54
    apply_filters( 'wcboost_products_compare_widget_is_hidden', Helper::is_compare_page() );
  • widget_title

    filter
    includes/widgets/products-compare.php line 63
    apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
  • includes/helper.php line 84
    apply_filters( 'woocommerce_coming_soon_exclude', false );
  • includes/plugin.php line 220
    apply_filters( 'wpml_object_id', $page_id, 'page', false, null );

Generated from WCBoost'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: