woocommerce_product_loop_end( bool $echo = true )

Output the end 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_end( $echo = true ) {
		ob_start();

		wc_get_template( 'loop/loop-end.php' );

		$loop_end = apply_filters( 'woocommerce_product_loop_end', ob_get_clean() );

		if ( $echo ) {
			echo $loop_end; // WPCS: XSS ok.
		} else {
			return $loop_end;
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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