woocommerce_before_shop_loop action-hookWC 6.3.0

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

ClassicTemplate::render_archive_product()
woocommerce_before_shop_loop
woocommerce_content()
woocommerce_before_shop_loop
WC_Shortcode_Products::product_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/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 );