ShopXpert 1.0.8 has 3 actions and 28 filters, read directly from its source code on Nov 19, 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 ShopXpert fires an action
add_action( 'woocommerce_ajax_added_to_cart', function( $product_id ) {
// Your code runs here.
}, 10, 1 );
// Change a value ShopXpert is about to use
add_filter( 'shopxpert_locate_template', function( $plugin_tmp_path, $tmp_name ) {
// Change $plugin_tmp_path here.
return $plugin_tmp_path;
}, 10, 2 );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
-
apply_filters( 'shopxpert_locate_template', $plugin_tmp_path, $tmp_name ); -
apply_filters( 'shopxpert_shop_out_of_stock_text', __( 'Out of stock', 'shopxpert' ) ); -
apply_filters( 'shopxpert_add_to_wishlist_output', 0, $normalicon, $addedicon, $tooltip ); -
apply_filters( 'shopxpert_admin_fields', $settings_fields ); -
apply_filters( 'shopxpert_admin_fields_sections', $sections ); -
apply_filters( 'shopxpert_has_wishlist_plugin', false ); -
apply_filters( 'shopxpert_order_by_opts', $options ); -
apply_filters( 'shopxpert_sale_badge_text', esc_html__( 'Sale!', 'shopxpert' ) ); -
apply_filters( 'shopxpert_text_pre_order_line_items', '<span style="background: #ec5858;border-radius: 3px;padding: 2px 8px;color: #fff;">Pre-Order</span> : Yes' ); -
apply_filters( 'WishList_add_to_cart_btn', $product[ $field_id ] ); -
apply_filters( 'wishlist_button_arg', $atts ); -
apply_filters( 'wishlist_count_arg', $atts ); -
apply_filters( 'wishlist_default_fields', $fields ); -
apply_filters( 'wishlist_locate_template', $located, $tmp_name ); -
apply_filters( 'wishlist_table_arg', $atts ); -
wlbackorder_cart_product_not_enough_stock_already_in_cart_message
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'wlbackorder_cart_product_not_enough_stock_already_in_cart_message', $message, $product_data, $can_add_to_cart_max, $qty_already_on_cart ); -
wlbackorder_cart_product_not_enough_stock_message
filter Used by 2 plugins → Copy link Customise this hookapply_filters( 'wlbackorder_cart_product_not_enough_stock_message', $message, $product_data, $can_add_to_cart_max ); -
apply_filters( 'wlbackorder_order_query_limit', 250 ); -
apply_filters( 'woocommerce_add_to_cart_product_id', absint( $_POST['product_id'] ) ); -
apply_filters( 'woocommerce_add_to_cart_quantity', $quantity, $product_id ); -
apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations ); -
do_action( 'woocommerce_ajax_added_to_cart', $product_id ); -
apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id ); -
apply_filters( 'woocommerce_catalog_orderby', array( 'menu_order' => __( 'Default sorting', 'shopxpert' ), 'popularity' => __( 'Sort by popularity', 'shopxpert' ), 'rating' => __( 'Sort by average rating', 'shopxpert' ), 'date' => __( 'Sort by latest', 'shopxpert' ), 'price' => __( 'Sort by price: low to high', 'shopxpert' ), 'price-desc' => __( 'Sort by price: high to low', 'shopxpert' ), ) ); -
apply_filters( 'woocommerce_get_stock_html', $html, $product ); -
apply_filters( 'woocommerce_pagination_args', array( 'base'=> esc_url( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ), 'format' => '', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $totalpage, 'prev_text' => '←', 'next_text' => '→', 'type' => 'list', 'end_size' => 3, 'mid_size' => 3 ) ); -
apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . esc_html__( 'Sale!', 'shopxpert' ) . '</span>', $post, $product ); -
apply_filters( 'woocommerce_short_description', $product[ $field_id ] ); -
do_action( "wsa_form_bottom_{$form['id']}", $form ); -
do_action( "wsa_form_top_{$form['id']}", $form );
Generated from ShopXpert's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: