woocommerce_reset_loop

Reset the loop's index and columns when we're done outputting a product loop.

Description

woocommerce_reset_loop(); 

Usage

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

Defined (1)

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

/includes/wc-template-functions.php  
  1. function woocommerce_reset_loop() { 
  2. $GLOBALS['woocommerce_loop'] = array( 
  3. 'loop' => '',  
  4. 'columns' => '',  
  5. 'name' => '',  
  6. );