gtm4wp_add_admin_page

The Google Tag Manager for WordPress gtm4wp add admin page function.

Description

gtm4wp_add_admin_page(); 

Usage

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

Defined (1)

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

/admin/admin.php  
  1. function gtm4wp_add_admin_page() { 
  2. add_options_page( 
  3. __( 'Google Tag Manager for WordPress settings', 'duracelltomi-google-tag-manager' ),  
  4. __( 'Google Tag Manager', 'duracelltomi-google-tag-manager' ),  
  5. 'manage_options',  
  6. );