woocommerce_product_loop_start( bool $echo = true )
Output the start of a product loop. By default this is a UL.
Description Description
Parameters Parameters
- $echo
-
(Optional) Should echo?.
Default value: true
Return Return
(string)
Source Source
File: includes/wc-template-functions.php
function woocommerce_product_loop_start( $echo = true ) {
ob_start();
wc_set_loop_prop( 'loop', 0 );
wc_get_template( 'loop/loop-start.php' );
$loop_start = apply_filters( 'woocommerce_product_loop_start', ob_get_clean() );
if ( $echo ) {
echo $loop_start; // WPCS: XSS ok.
} else {
return $loop_start;
}
}