woocommerce_product_loop_end()
Output the end of a product loop. By default this is a UL.
Hooks from the function
Return
String
.
Usage
woocommerce_product_loop_end( $echo );
- $echo(true|false)
- Should echo?.
Default: true
woocommerce_product_loop_end() woocommerce product loop end code WC 8.7.0
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 ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $loop_end; } else { return $loop_end; } }