woocommerce_no_products_found хук-событиеWC 1.0

Hook: woocommerce_no_products_found.

Использование

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...
}

Где вызывается хук

ClassicTemplate::render_archive_product()
woocommerce_no_products_found
woocommerce_content()
woocommerce_no_products_found
woocommerce/templates/archive-product.php 88
do_action( 'woocommerce_no_products_found' );
woocommerce/includes/wc-template-functions.php 1004
do_action( 'woocommerce_no_products_found' );

Где используется хук в WooCommerce

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