woocommerce_before_shop_loop
Hook: woocommerce_before_shop_loop.
Usage
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... }
Changelog
Since 6.3.0 | Introduced. |
Where the hook is called
woocommerce_before_shop_loop
woocommerce_before_shop_loop
woocommerce_before_shop_loop
woocommerce/src/Blocks/BlockTypes/ClassicTemplate.php 296
do_action( 'woocommerce_before_shop_loop' );
woocommerce/includes/wc-template-functions.php 1001
<?php do_action( 'woocommerce_before_shop_loop' ); ?>
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 646
do_action( 'woocommerce_before_shop_loop' );
woocommerce/templates/archive-product.php 49
do_action( 'woocommerce_before_shop_loop' );
Where the hook is used in WooCommerce
woocommerce/includes/wc-template-functions.php 199
add_action( 'woocommerce_before_shop_loop', 'wc_setup_loop' );
woocommerce/includes/wc-template-hooks.php 312
add_action( 'woocommerce_before_shop_loop', 'woocommerce_output_all_notices', 10 );
woocommerce/includes/wc-template-hooks.php 83
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
woocommerce/includes/wc-template-hooks.php 84
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );