gtm4wp_init

The Google Tag Manager for WordPress gtm4wp init function.

Description

gtm4wp_init(); 

Usage

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

Defined (1)

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

/duracelltomi-google-tag-manager-for-wordpress.php  
  1. function gtm4wp_init() { 
  2. load_plugin_textdomain( 'duracelltomi-google-tag-manager', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
  3. if ( is_admin() ) { 
  4. require_once( GTM4WP_PATH."/admin/admin.php" ); 
  5. } else { 
  6. require_once( GTM4WP_PATH."/public/frontend.php" );