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.
// 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
-
wpml_object_id
filter/** * 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 ); -
wcboost_wishlist_header
action/** * The hook 'wcboost_wishlist_header' is used to display the wishlist header. */ do_action( 'wcboost_wishlist_header', $wishlist ); -
/** * Filter the redirect URL after deleting a wishlist. */ apply_filters( 'wcboost_wishlist_remove_wishlist_redirect', wc_get_page_permalink( 'shop' ), $wishlist ); -
/** * Filter the redirect URL after restoring a wishlist. */ apply_filters( 'wcboost_wishlist_restore_wishlist_redirect', $wishlist->get_public_url(), $wishlist ); -
do_action( 'wcboost_wishlist_after_wishlist' ); -
do_action( 'wcboost_wishlist_before_wishlist' ); -
wpml_default_language
filterapply_filters( 'wpml_default_language', null ); -
apply_filters( 'wcboost_wishlist_add_to_wishlist_product_id', absint( $_POST['product_id'] ) ); -
apply_filters( 'wcboost_wishlist_add_to_wishlist_redirect', $url, $adding_product ); -
apply_filters( 'wcboost_wishlist_remove_from_wishlist_url', $url, $this ); -
apply_filters( 'wcboost_wishlist_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ); -
apply_filters( 'wcboost_wishlist_template_args', $args, $wishlist ); -
wcboost_wishlist_add_item
actiondo_action( 'wcboost_wishlist_add_item', $item ); -
apply_filters( 'wcboost_wishlist_add_to_wishlist_fragments', $data ); -
apply_filters( 'wcboost_wishlist_add_to_wishlist_url', $url, $this ); -
do_action( 'wcboost_wishlist_after_delete_form', $wishlist ); -
do_action( 'wcboost_wishlist_after_edit_form', $wishlist ); -
do_action( 'wcboost_wishlist_after_item_name', $item, $item_key, $wishlist ); -
do_action( 'wcboost_wishlist_after_wishlist_table', $wishlist ); -
apply_filters( 'wcboost_wishlist_ajax_timeout', 5000 ); -
do_action( 'wcboost_wishlist_before_edit_form', $wishlist ); -
do_action( 'wcboost_wishlist_before_wishlist_table', $wishlist ); -
apply_filters( "wcboost_wishlist_button_{$type}_text", $text ); -
wcboost_wishlist_button_icon
filterapply_filters( 'wcboost_wishlist_button_icon', $svg, $icon ); -
apply_filters( 'wcboost_wishlist_button_template_args', $args, $wishlist, $product ); -
apply_filters( 'wcboost_wishlist_content_template', $template, $wishlist ); -
apply_filters( 'wcboost_wishlist_content_template_args', $args, $wishlist ); -
apply_filters( 'wcboost_wishlist_continue_shopping_redirect', wc_get_raw_referer() ? wp_validate_redirect( wc_get_raw_referer(), false ) : wc_get_page_permalink( 'shop' ) ); -
wcboost_wishlist_delete
actiondo_action( 'wcboost_wishlist_delete', $wishlist ); -
wcboost_wishlist_delete_url
filterapply_filters( 'wcboost_wishlist_delete_url', $url, $this ); -
wcboost_wishlist_deleted
actiondo_action( 'wcboost_wishlist_deleted', $wishlist ); -
wcboost_wishlist_description
filterapply_filters( 'wcboost_wishlist_description', $wishlist->get_description() ); -
apply_filters( 'wcboost_wishlist_description_html', '<div class="wcboost-wishlist-description">' . $desc . '</div>', $desc, $wishlist ); -
apply_filters( 'wcboost_wishlist_display_header', $visible, $wishlist ); -
wcboost_wishlist_edit_form
actiondo_action( 'wcboost_wishlist_edit_form' ); -
do_action( 'wcboost_wishlist_edit_form_actions', $wishlist ); -
wcboost_wishlist_edit_link
filterapply_filters( 'wcboost_wishlist_edit_link', $link, $wishlist ); -
wcboost_wishlist_edit_url
filterapply_filters( 'wcboost_wishlist_edit_url', $url, $this ); -
wcboost_wishlist_emptied
actiondo_action( 'wcboost_wishlist_emptied', $this ); -
apply_filters( 'wcboost_wishlist_empty_message', __( 'The wishlist is empty.', 'wcboost-wishlist' ) ); -
apply_filters( 'wcboost_wishlist_endpoint_settings', $endpoint_settings ); -
apply_filters( 'wcboost_wishlist_enqueue_frontend_style', true ); -
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, ] ); -
apply_filters( 'wcboost_wishlist_get_endpoint_url', $url, $endpoint, $value, $this ); -
wcboost_wishlist_hash
filterapply_filters( 'wcboost_wishlist_hash', $hash, $this ); -
wcboost_wishlist_hash_key
filterapply_filters( 'wcboost_wishlist_hash_key', $hash_key, $wishlist ); -
apply_filters( 'wcboost_wishlist_header_template_args', $args, $wishlist ); -
wcboost_wishlist_inserted
actiondo_action( 'wcboost_wishlist_inserted', $wishlist ); -
wcboost_wishlist_installed
actiondo_action( 'wcboost_wishlist_installed' ); -
wcboost_wishlist_item_class
filterapply_filters( 'wcboost_wishlist_item_class', 'wcboost-wishlist-item', $item, $item_key ); -
wcboost_wishlist_item_delete
actiondo_action( 'wcboost_wishlist_item_delete', $item ); -
do_action( 'wcboost_wishlist_item_deleted', $item ); -
do_action( 'wcboost_wishlist_item_inserted', $item ); -
wcboost_wishlist_item_key
filterapply_filters( 'wcboost_wishlist_item_key', md5( implode( '_', $id_parts ) ), $product_id, $variation_id ); -
do_action( 'wcboost_wishlist_item_move_to_trash', $this ); -
do_action( 'wcboost_wishlist_item_moved_to_trash', $this ); -
apply_filters( 'wcboost_wishlist_item_remove_link', sprintf( '<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s" rel="nofollow">×</a>', esc_url( $item->get_remove_url() ), esc_html__( 'Remove this item', 'wcboost-wishlist' ), esc_attr( $_product->get_id() ), esc_attr( $_product->get_sku() ) ), $item_key ); -
do_action( 'wcboost_wishlist_item_restore', $this ); -
do_action( 'wcboost_wishlist_item_restored', $this ); -
do_action( 'wcboost_wishlist_item_updated', $item ); -
wcboost_wishlist_layout
filterapply_filters( 'wcboost_wishlist_layout', 'table' ); -
apply_filters( 'wcboost_wishlist_loop_add_to_wishlist_link', sprintf( '<a href="%s" class="%s" %s>' . ( ! empty( $args['icon'] ) ? '<span class="wcboost-wishlist-button__icon">' . $args['icon'] . '</span>' : '' ) . '<span class="wcboost-wishlist-button__text">%s</span>' . '</a>', esc_url( isset( $args['url'] ) ? $args['url'] : add_query_arg( [ 'add-to-wishlist' => $product->get_id() ] ) ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'wcboost-wis... ); -
do_action( 'wcboost_wishlist_main_content', $wishlist ); -
apply_filters( 'wcboost_wishlist_merge_guest_wishlist', $mergeable, $guest_wishlist ); -
apply_filters( 'wcboost_wishlist_merge_guest_wishlist_links', $links ); -
do_action( 'wcboost_wishlist_move_to_trash', $this ); -
do_action( 'wcboost_wishlist_moved_to_trash', $this ); -
apply_filters( 'wcboost_wishlist_page_id_option_exclude', [ wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ), wc_get_page_id( 'cart' ), ] ); -
wcboost_wishlist_public_url
filterapply_filters( 'wcboost_wishlist_public_url', $url, $this ); -
wcboost_wishlist_query_vars
filterapply_filters( 'wcboost_wishlist_query_vars', $this->query_vars ); -
wcboost_wishlist_remove_item
actiondo_action( 'wcboost_wishlist_remove_item', $item ); -
do_action( 'wcboost_wishlist_removed_item', $item ); -
wcboost_wishlist_restore
actiondo_action( 'wcboost_wishlist_restore', $this ); -
do_action( 'wcboost_wishlist_restore_item', $item ); -
wcboost_wishlist_restore_url
filterapply_filters( 'wcboost_wishlist_restore_url', $url, $this ); -
wcboost_wishlist_restored
actiondo_action( 'wcboost_wishlist_restored', $this ); -
do_action( 'wcboost_wishlist_restored_item', $item ); -
apply_filters( 'wcboost_wishlist_return_to_shop_link', sprintf( '<a href="%s" class="button wc-backward">%s</a>', esc_url( $args['return_url'] ), esc_html__( 'Return to shop', 'wcboost-wishlist' ) ), $args ); -
apply_filters( 'wcboost_wishlist_rewrite_rules', $rewrite_rules, $base ); -
apply_filters( 'wcboost_wishlist_session_expire', MONTH_IN_SECONDS ); -
wcboost_wishlist_settings
filterapply_filters( 'wcboost_wishlist_settings', $settings ); -
apply_filters( 'wcboost_wishlist_shortcode_button_html', $html, $wishlist, $item, $atts ); -
apply_filters( 'wcboost_wishlist_show_variation_data', $allow_variations ); -
apply_filters( 'wcboost_wishlist_single_add_to_wishlist_link', sprintf( '<a href="%s" class="%s" %s>' . ( empty( $icon ) ? '' : '<span class="wcboost-wishlist-button__icon">' . $icon . '</span>' ) . '<span class="wcboost-wishlist-button__text">%s</span>' . '</a>', esc_url( isset( $args['url'] ) ? $args['url'] : add_query_arg( [ 'add-to-wishlist' => $product->get_id() ] ) ), esc_attr( isset( $args['class'] ) ? $args['class'] : 'wcboost-wishlist-single-butto... ); -
apply_filters( 'wcboost_wishlist_supported_layouts', [ 'table' ] ); -
wcboost_wishlist_svg_icon
filterapply_filters( 'wcboost_wishlist_svg_icon', $svg, $icon ); -
wcboost_wishlist_template
filterapply_filters( 'wcboost_wishlist_template', $template, $wishlist ); -
wcboost_wishlist_title
filterapply_filters( 'wcboost_wishlist_title', $wishlist->get_wishlist_title(), $wishlist ); -
wcboost_wishlist_title_html
filterapply_filters( 'wcboost_wishlist_title_html', '<h2 class="wcboost-wishlist-title">' . $title . '</h2>', $title, $wishlist ); -
apply_filters( 'wcboost_wishlist_token_length', 16 ); -
wcboost_wishlist_updated
actiondo_action( 'wcboost_wishlist_updated', $wishlist ); -
do_action( 'wcboost_wishlist_widget_after_content', $wishlist ); -
do_action( 'wcboost_wishlist_widget_before_content', $wishlist ); -
do_action( 'wcboost_wishlist_widget_buttons', $wishlist, $args ); -
do_action( 'wcboost_wishlist_widget_item_end', $_product, $item, $wishlist ); -
do_action( 'wcboost_wishlist_widget_item_start', $_product, $item, $wishlist ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $wishlist_page_id, 'post_page' ); -
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: