gtp4wp_woocommerce_reset_loop

The Google Tag Manager for WordPress gtp4wp woocommerce reset loop function.

Description

gtp4wp_woocommerce_reset_loop(); 

Usage

  1. if ( !function_exists( 'gtp4wp_woocommerce_reset_loop' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-tag-manager-for-wordpress/integration/woocommerce.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gtp4wp_woocommerce_reset_loop(); 
  7.  

Defined (1)

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

/integration/woocommerce.php  
  1. function gtp4wp_woocommerce_reset_loop() { 
  2. global $woocommerce_loop; 
  3.  
  4. $woocommerce_loop[ "listtype" ] = "";