gtm4wp_woocommerce_before_template_part

The Google Tag Manager for WordPress gtm4wp woocommerce before template part function.

Description

gtm4wp_woocommerce_before_template_part( (string) $template_name ); 

Parameters (1)

0. $template_name (string)
The template name.

Usage

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

Defined (1)

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

/integration/woocommerce.php  
  1. function gtm4wp_woocommerce_before_template_part( $template_name ) { 
  2. ob_start();