WCBoost icon
eCommerce & WooCommerce

WCBoost hooks reference

  • By WCBoost
  • v1.3.1
  • Updated

WCBoost 1.3.1 has 43 actions and 64 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_wishlist_footer', function( $wishlist ) {
	// Your code runs here.
}, 10, 1 );

// Change a value WCBoost is about to use
add_filter( 'wpml_object_id', function( $product_id, $arg2, $arg3, $default_lang ) {
	// Change $product_id here.
	return $product_id;
}, 10, 4 );

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/compatibility.php line 128 · used in 6 places
    /**
     * Set the third parameter to true to return the original ID if the translation
     * is not found. This ensures the add to wishlist button always works properly.
     */
    apply_filters( 'wpml_object_id', $product_id, 'product', true, $default_lang );
  • templates/wishlist/wishlist-header.php line 28
    /**
     * The hook 'wcboost_wishlist_header' is used to display the wishlist header.
     */
    do_action( 'wcboost_wishlist_header', $wishlist );
  • includes/form-handler.php line 363
    /**
     * Filter the redirect URL after deleting a wishlist.
     */
    apply_filters( 'wcboost_wishlist_remove_wishlist_redirect', wc_get_page_permalink( 'shop' ), $wishlist );
  • includes/form-handler.php line 404
    /**
     * Filter the redirect URL after restoring a wishlist.
     */
    apply_filters( 'wcboost_wishlist_restore_wishlist_redirect', $wishlist->get_public_url(), $wishlist );
  • templates/wishlist/wishlist-empty.php line 34 · used in 3 places
    do_action( 'wcboost_wishlist_after_wishlist' );
  • templates/wishlist/wishlist-empty.php line 14 · used in 3 places
    do_action( 'wcboost_wishlist_before_wishlist' );
  • includes/compatibility.php line 77 · used in 3 places
    apply_filters( 'wpml_default_language', null );
  • includes/ajax-handler.php line 67 · used in 2 places
    apply_filters( 'wcboost_wishlist_add_to_wishlist_product_id', absint( $_POST['product_id'] ) );
  • includes/form-handler.php line 117 · used in 2 places
    apply_filters( 'wcboost_wishlist_add_to_wishlist_redirect', $url, $adding_product );
  • includes/wishlist-item.php line 419 · used in 2 places
    apply_filters( 'wcboost_wishlist_remove_from_wishlist_url', $url, $this );
  • includes/integrations/elementor/wishlist-widget.php line 190 · used in 2 places
    apply_filters( 'wcboost_wishlist_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) );
  • includes/integrations/elementor/wishlist-widget.php line 193 · used in 2 places
    apply_filters( 'wcboost_wishlist_template_args', $args, $wishlist );
  • includes/wishlist.php line 577
    do_action( 'wcboost_wishlist_add_item', $item );
  • includes/ajax-handler.php line 178
    apply_filters( 'wcboost_wishlist_add_to_wishlist_fragments', $data );
  • includes/wishlist-item.php line 399
    apply_filters( 'wcboost_wishlist_add_to_wishlist_url', $url, $this );
  • templates/wishlist/form-delete-wishlist.php line 28
    do_action( 'wcboost_wishlist_after_delete_form', $wishlist );
  • templates/wishlist/form-edit-wishlist.php line 81
    do_action( 'wcboost_wishlist_after_edit_form', $wishlist );
  • templates/wishlist/wishlist-table.php line 96
    do_action( 'wcboost_wishlist_after_item_name', $item, $item_key, $wishlist );
  • templates/wishlist/share.php line 35
    do_action( 'wcboost_wishlist_after_share_buttons' );
  • templates/wishlist/wishlist-table.php line 165
    do_action( 'wcboost_wishlist_after_wishlist_table', $wishlist );
  • includes/frontend.php line 169
    apply_filters( 'wcboost_wishlist_ajax_timeout', 5000 );
  • templates/wishlist/form-edit-wishlist.php line 18
    do_action( 'wcboost_wishlist_before_edit_form', $wishlist );
  • templates/wishlist/share.php line 14
    do_action( 'wcboost_wishlist_before_share_buttons' );
  • templates/wishlist/wishlist-table.php line 19
    do_action( 'wcboost_wishlist_before_wishlist_table', $wishlist );
  • includes/helper.php line 217
    apply_filters( "wcboost_wishlist_button_{$type}_text", $text );
  • includes/helper.php line 198
    apply_filters( 'wcboost_wishlist_button_icon', $svg, $icon );
  • includes/templates.php line 210
    apply_filters( 'wcboost_wishlist_button_template_args', $args, $wishlist, $product );
  • includes/templates.php line 50
    apply_filters( 'wcboost_wishlist_content_template', $template, $wishlist );
  • includes/templates.php line 245
    apply_filters( 'wcboost_wishlist_content_template_args', $args, $wishlist );
  • includes/form-handler.php line 107
    apply_filters( 'wcboost_wishlist_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) );
  • includes/data-stores/wishlist.php line 208
    do_action( 'wcboost_wishlist_delete', $wishlist );
  • includes/wishlist.php line 981
    apply_filters( 'wcboost_wishlist_delete_url', $url, $this );
  • includes/data-stores/wishlist.php line 213
    do_action( 'wcboost_wishlist_deleted', $wishlist );
  • includes/frontend.php line 281
    apply_filters( 'wcboost_wishlist_description', $wishlist->get_description() );
  • includes/frontend.php line 287
    apply_filters( 'wcboost_wishlist_description_html', '<div class="wcboost-wishlist-description">' . $desc . '</div>', $desc, $wishlist );
  • includes/frontend.php line 216
    apply_filters( 'wcboost_wishlist_display_header', $visible, $wishlist );
  • templates/wishlist/form-edit-wishlist.php line 67
    do_action( 'wcboost_wishlist_edit_form' );
  • templates/wishlist/form-edit-wishlist.php line 73
    do_action( 'wcboost_wishlist_edit_form_actions', $wishlist );
  • includes/wishlist.php line 943
    apply_filters( 'wcboost_wishlist_edit_url', $url, $this );
  • includes/wishlist.php line 902
    do_action( 'wcboost_wishlist_emptied', $this );
  • templates/wishlist/wishlist-empty.php line 18
    apply_filters( 'wcboost_wishlist_empty_message', __( 'The wishlist is empty.', 'wcboost-wishlist' ) );
  • includes/admin/settings.php line 431
    apply_filters( 'wcboost_wishlist_endpoint_settings', $endpoint_settings );
  • includes/frontend.php line 141
    apply_filters( 'wcboost_wishlist_enqueue_frontend_style', true );
  • includes/frontend.php line 372
    apply_filters( 'wcboost_wishlist_form_delete_template_args', [ 'title' => __( 'Delete wishlist', 'wcboost-wishlist' ), 'message' => __( 'Delete the wishlist and all items it contains', 'wcboost-wishlist' ), 'wishlist' => $wishlist, ] );
  • includes/query.php line 300
    apply_filters( 'wcboost_wishlist_get_endpoint_url', $url, $endpoint, $value, $this );
  • includes/wishlist.php line 1021
    apply_filters( 'wcboost_wishlist_hash', $hash, $this );
  • includes/helper.php line 370
    apply_filters( 'wcboost_wishlist_hash_key', $hash_key, $wishlist );
  • includes/templates.php line 263
    apply_filters( 'wcboost_wishlist_header_template_args', $args, $wishlist );
  • includes/data-stores/wishlist.php line 125
    do_action( 'wcboost_wishlist_inserted', $wishlist );
  • includes/install.php line 75
    do_action( 'wcboost_wishlist_installed' );
  • templates/wishlist/wishlist-table.php line 58
    apply_filters( 'wcboost_wishlist_item_class', 'wcboost-wishlist-item', $item, $item_key );
  • includes/data-stores/wishlist-item.php line 131
    do_action( 'wcboost_wishlist_item_delete', $item );
  • includes/data-stores/wishlist-item.php line 136
    do_action( 'wcboost_wishlist_item_deleted', $item );
  • includes/data-stores/wishlist-item.php line 77
    do_action( 'wcboost_wishlist_item_inserted', $item );
  • includes/data-stores/wishlist-item.php line 222
    apply_filters( 'wcboost_wishlist_item_key', md5( implode( '_', $id_parts ) ), $product_id, $variation_id );
  • includes/wishlist-item.php line 349
    do_action( 'wcboost_wishlist_item_move_to_trash', $this );
  • includes/wishlist-item.php line 355
    do_action( 'wcboost_wishlist_item_moved_to_trash', $this );
  • includes/wishlist-item.php line 371
    do_action( 'wcboost_wishlist_item_restore', $this );
  • includes/wishlist-item.php line 377
    do_action( 'wcboost_wishlist_item_restored', $this );
  • includes/data-stores/wishlist-item.php line 113
    do_action( 'wcboost_wishlist_item_updated', $item );
  • includes/templates.php line 287
    apply_filters( 'wcboost_wishlist_layout', 'table' );
  • templates/wishlist/wishlist.php line 22
    do_action( 'wcboost_wishlist_main_content', $wishlist );
  • includes/session.php line 201
    apply_filters( 'wcboost_wishlist_merge_guest_wishlist', $mergeable, $guest_wishlist );
  • includes/wishlist.php line 488
    do_action( 'wcboost_wishlist_move_to_trash', $this );
  • includes/wishlist.php line 494
    do_action( 'wcboost_wishlist_moved_to_trash', $this );
  • includes/admin/settings.php line 40
    apply_filters( 'wcboost_wishlist_page_id_option_exclude', [ wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ), wc_get_page_id( 'cart' ), ] );
  • includes/wishlist.php line 932
    apply_filters( 'wcboost_wishlist_public_url', $url, $this );
  • includes/query.php line 57
    apply_filters( 'wcboost_wishlist_query_vars', $this->query_vars );
  • includes/wishlist.php line 601
    do_action( 'wcboost_wishlist_remove_item', $item );
  • includes/wishlist.php line 607
    do_action( 'wcboost_wishlist_removed_item', $item );
  • includes/wishlist.php line 509
    do_action( 'wcboost_wishlist_restore', $this );
  • includes/wishlist.php line 640
    do_action( 'wcboost_wishlist_restore_item', $item );
  • includes/wishlist.php line 962
    apply_filters( 'wcboost_wishlist_restore_url', $url, $this );
  • includes/wishlist.php line 520
    do_action( 'wcboost_wishlist_restored', $this );
  • includes/wishlist.php line 647
    do_action( 'wcboost_wishlist_restored_item', $item );
  • includes/query.php line 158
    apply_filters( 'wcboost_wishlist_rewrite_rules', $rewrite_rules, $base );
  • includes/session.php line 113
    apply_filters( 'wcboost_wishlist_session_expire', MONTH_IN_SECONDS );
  • includes/admin/settings.php line 400
    apply_filters( 'wcboost_wishlist_settings', $settings );
  • includes/frontend.php line 319
    apply_filters( 'wcboost_wishlist_share_template_args', [ 'title' => __( 'Share', 'wcboost-wishlist' ), 'socials' => array_keys( $enabled ), 'wishlist' => $wishlist, ] );
  • includes/helper.php line 308
    apply_filters( 'wcboost_wishlist_share_url', $url, $social, $wishlist );
  • includes/shortcodes.php line 102
    apply_filters( 'wcboost_wishlist_shortcode_button_html', $html, $wishlist, $item, $atts );
  • includes/templates.php line 228
    apply_filters( 'wcboost_wishlist_show_variation_data', $allow_variations );
  • includes/templates.php line 286
    apply_filters( 'wcboost_wishlist_supported_layouts', [ 'table' ] );
  • includes/helper.php line 162
    apply_filters( 'wcboost_wishlist_svg_icon', $svg, $icon );
  • includes/templates.php line 37
    apply_filters( 'wcboost_wishlist_template', $template, $wishlist );
  • includes/frontend.php line 265
    apply_filters( 'wcboost_wishlist_title', $wishlist->get_wishlist_title(), $wishlist );
  • includes/frontend.php line 271
    apply_filters( 'wcboost_wishlist_title_html', '<h2 class="wcboost-wishlist-title">' . $title . '</h2>', $title, $wishlist );
  • includes/data-stores/wishlist.php line 494
    apply_filters( 'wcboost_wishlist_token_length', 16 );
  • includes/data-stores/wishlist.php line 185
    do_action( 'wcboost_wishlist_updated', $wishlist );
  • templates/wishlist/wishlist-widget.php line 107
    do_action( 'wcboost_wishlist_widget_after_content', $wishlist );
  • templates/wishlist/wishlist-widget.php line 18
    do_action( 'wcboost_wishlist_widget_before_content', $wishlist );
  • templates/wishlist/wishlist-widget.php line 97
    do_action( 'wcboost_wishlist_widget_buttons', $wishlist, $args );
  • includes/widgets/wishlist.php line 57
    apply_filters( 'wcboost_wishlist_widget_is_hidden', Helper::is_wishlist() );
  • templates/wishlist/wishlist-widget.php line 89
    do_action( 'wcboost_wishlist_widget_item_end', $_product, $item, $wishlist );
  • templates/wishlist/wishlist-widget.php line 34
    do_action( 'wcboost_wishlist_widget_item_start', $_product, $item, $wishlist );
  • includes/compatibility.php line 141
    apply_filters( 'wpml_current_language', null );
  • includes/compatibility.php line 70
    apply_filters( 'wpml_element_trid', null, $wishlist_page_id, 'post_page' );
  • includes/compatibility.php line 76
    apply_filters( 'wpml_get_element_translations', null, $trid, 'post_page' );

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: