Actions

woocommerce_product_search_deactivate ↑ Back to top

This action is invoked when the plugin is about to be deactivated and before it deletes its own data. It does not imply that its data will be deleted.

woocommerce_product_search_signal_filter_response ↑ Back to top

This action indicates that the system is handling a request to deliver its filter response.

This API action allows plugins and themes to be compatible with its live filters and selectively disable lazy loading.

Plugins and themes that wish to be compatible, should listen to the woocommerce_product_search_signal_filter_response action and disable their lazy loading features during the request when this action is invoked.

A typical example would be:

add_action( 'woocommerce_product_search_signal_filter_response', 'my_theme_disable_lazy_loading' );

function my_theme_disable_lazy_loading() {
// disable lazy loading during this request
}

When the action is triggered, the theme/plugin should not apply lazy loading so it does not interfere with the results pulled in dynamically by the search engine’s live filters.

woocommerce_before_{$loop_name}_loop ↑ Back to top

This action applies when the plugin’s [woocommerce_product_filter_products] shortcode is used or when its woocommerce_product_filter_products() function is called to display products. It is invoked just before entering the product loop and provides the shortcode or function attributes as the action’s $atts argument.

Arguments:

$atts array rendering options

woocommerce_after_{$loop_name}_loop ↑ Back to top

This action applies when the plugin’s [woocommerce_product_filter_products] shortcode is used or when its woocommerce_product_filter_products() function is called to display products. It is invoked just after the product loop and provides the shortcode or function attributes as the action’s $atts argument.

Arguments:

$atts array rendering options

woocommerce_{$loop_name}_loop_no_results ↑ Back to top

This action applies when the plugin’s [woocommerce_product_filter_products] shortcode is used or when its woocommerce_product_filter_products() function is called to display products. It is invoked when there are no products to show in the product loop and provides the shortcode or function attributes as the action’s $atts argument.

Arguments:

$atts array rendering options

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top