woocommerce_shortcode_before_(type)_loop
Usage
add_action( 'woocommerce_shortcode_before_(type)_loop', 'wp_kama_woocommerce_shortcode_before_type_loop_action' );
/**
* Function for `woocommerce_shortcode_before_(type)_loop` action-hook.
*
* @param $attributes
*
* @return void
*/
function wp_kama_woocommerce_shortcode_before_type_loop_action( $attributes ){
// action...
}
- $attributes
- -
Where the hook is called
woocommerce_shortcode_before_(type)_loop
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 644
do_action( "woocommerce_shortcode_before_{$this->type}_loop", $this->attributes );
Where the hook is used in WooCommerce
woocommerce/includes/wc-template-hooks.php 320
add_action( 'woocommerce_shortcode_before_product_cat_loop', 'woocommerce_output_all_notices', 10 );