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


Top ↑

Return Return

(string)


Top ↑

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;
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.