woocommerce_shortcode_before_{$this->type}_loop

woocommerce_shortcode_before_{$this->type}_loop

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_shortcode_before_{$this->type}_loop') is found 1 times:

  • /includes/shortcodes/class-wc-shortcode-products.php line 644
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    );
     
    $original_post = $GLOBALS['post'];
     
    do_action( "woocommerce_shortcode_before_{$this->type}_loop", $this->attributes );
     
    if ( wc_string_to_bool( $this->attributes['paginate'] ) ) {
        /**
         * Fire the standard shop hooks when paginating so we can display result counts etc.
         * If the pagination is not enabled, this hook will not be fired.
         *