gtm4wp_show_admin_page

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

Description

gtm4wp_show_admin_page(); 

Usage

  1. if ( !function_exists( 'gtm4wp_show_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_show_admin_page(); 
  7.  

Defined (1)

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

/admin/admin.php  
  1. function gtm4wp_show_admin_page() { 
  2. global $gtp4wp_plugin_url; 
  3. ?> 
  4. <div class="wrap"> 
  5. <div id="gtm4wp-icon" class="icon32" style="background-image: url(<?php echo $gtp4wp_plugin_url; ?>admin/images/tag_manager-32.png);"><br /></div> 
  6. <h2><?php _e( 'Google Tag Manager for WordPress options', 'duracelltomi-google-tag-manager' ); ?></h2> 
  7. <form action="options.php" method="post"> 
  8. <?php settings_fields( GTM4WP_ADMIN_GROUP ); ?> 
  9. <?php do_settings_sections( GTM4WP_ADMINSLUG ); ?> 
  10. <?php submit_button(); ?> 
  11.  
  12. </form> 
  13. </div> 
  14. <?php