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

Fire standard shop loop hooks when paginating results so we can show result counts and so on.

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

add_action( 'woocommerce_before_shop_loop', 'wp_kama_woocommerce_before_shop_loop_action' );

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

	// action...
}

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

WC_Shortcode_Products::product_loop()
woocommerce_before_shop_loop
ClassicTemplate::render_archive_product()
woocommerce_before_shop_loop
woocommerce_content()
woocommerce_before_shop_loop
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 646
do_action( 'woocommerce_before_shop_loop' );
woocommerce/templates/archive-product.php 57
do_action( 'woocommerce_before_shop_loop' );
woocommerce/includes/wc-template-functions.php 987
<?php do_action( 'woocommerce_before_shop_loop' ); ?>

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

woocommerce/includes/wc-template-functions.php 199
add_action( 'woocommerce_before_shop_loop', 'wc_setup_loop' );
woocommerce/includes/wc-template-hooks.php 305
add_action( 'woocommerce_before_shop_loop', 'woocommerce_output_all_notices', 10 );
woocommerce/includes/wc-template-hooks.php 76
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
woocommerce/includes/wc-template-hooks.php 77
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );