gtm4wp_woocommerce_add_related_to_loop

The Google Tag Manager for WordPress gtm4wp woocommerce add related to loop function.

Description

gtm4wp_woocommerce_add_related_to_loop( $arg ); 

Parameters (1)

0. $arg
The arg.

Usage

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

Defined (1)

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

/integration/woocommerce.php  
  1. function gtm4wp_woocommerce_add_related_to_loop( $arg ) { 
  2. global $woocommerce_loop; 
  3.  
  4. $woocommerce_loop[ "listtype" ] = __( "Related Products", "duracelltomi-google-tag-manager" ); 
  5.  
  6. return $arg;