gtm4wp_before_related_products_loop

The Google Tag Manager for WordPress gtm4wp before related products loop function.

Description

gtm4wp_before_related_products_loop(); 

Usage

  1. if ( !function_exists( 'gtm4wp_before_related_products_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 = gtm4wp_before_related_products_loop(); 
  7.  

Defined (1)

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

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