woocommerce_product_loop_end

Output the end of a product loop.

Description

(string) woocommerce_product_loop_end( (bool) $echo = true ); 

By default this is a UL.

Returns (string)

Parameters (1)

0. $echo — Optional. (bool) => true
The echo.

Usage

  1. if ( !function_exists( 'woocommerce_product_loop_end' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4. // The echo. 
  5. $echo = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_product_loop_end($echo); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_product_loop_end( $echo = true ) { 
  2. ob_start(); 
  3.  
  4. wc_get_template( 'loop/loop-end.php' ); 
  5.  
  6. if ( $echo ) 
  7. echo ob_get_clean(); 
  8. else 
  9. return ob_get_clean();