woocommerce_no_products_found action-hookWC 6.3.0

Hook: woocommerce_no_products_found.

Usage

add_action( 'woocommerce_no_products_found', 'wp_kama_woocommerce_no_products_found_action' );

/**
 * Function for `woocommerce_no_products_found` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_no_products_found_action(){

	// action...
}

Changelog

Since 6.3.0 Introduced.

Where the hook is called

ClassicTemplate::render_archive_product()
woocommerce_no_products_found
woocommerce_content()
woocommerce_no_products_found
woocommerce/src/Blocks/BlockTypes/ClassicTemplate.php 333
do_action( 'woocommerce_no_products_found' );
woocommerce/includes/wc-template-functions.php 1018
do_action( 'woocommerce_no_products_found' );
woocommerce/templates/archive-product.php 80
do_action( 'woocommerce_no_products_found' );

Where the hook is used in WooCommerce

woocommerce/includes/wc-template-hooks.php 85
add_action( 'woocommerce_no_products_found', 'wc_no_products_found' );