gglstmp_admin_menu

The Google Sitemap by BestWebSoft gglstmp admin menu function.

Description

gglstmp_admin_menu(); 

Usage

  1. if ( !function_exists( 'gglstmp_admin_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/google-sitemap-plugin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gglstmp_admin_menu(); 
  7.  

Defined (1)

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

/google-sitemap-plugin.php  
  1. function gglstmp_admin_menu() { 
  2. global $gglstmp_options, $wp_version, $submenu, $gglstmp_plugin_info; 
  3.  
  4. $settings = add_menu_page( __( 'Google Sitemap Settings', 'google-sitemap-plugin' ), 'Google Sitemap', 'manage_options', 'google-sitemap-plugin.php', 'gglstmp_settings_page', 'none' ); 
  5. add_submenu_page( 'google-sitemap-plugin.php', __( 'Google Sitemap Settings', 'google-sitemap-plugin' ), __( 'Settings', 'google-sitemap-plugin' ), 'manage_options', 'google-sitemap-plugin.php', 'gglstmp_settings_page' ); 
  6.  
  7. if ( ! bws_hide_premium_options_check( $gglstmp_options ) ) 
  8. add_submenu_page( 'google-sitemap-plugin.php', __( 'Custom Links', 'google-sitemap-plugin' ), __( 'Custom Links', 'google-sitemap-plugin' ), 'manage_options', 'google-sitemap-custom-links.php', 'gglstmp_settings_page' ); 
  9.  
  10. add_submenu_page( 'google-sitemap-plugin.php', 'BWS Panel', 'BWS Panel', 'manage_options', 'gglstmp-bws-panel', 'bws_add_menu_render' ); 
  11.  
  12. if ( isset( $submenu['google-sitemap-plugin.php'] ) ) 
  13. $submenu['google-sitemap-plugin.php'][] = array(  
  14. '<span style="color:#d86463"> ' . __( 'Upgrade to Pro', 'google-sitemap-plugin' ) . '</span>',  
  15. 'manage_options',  
  16. 'https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/?k=28d4cf0b4ab6f56e703f46f60d34d039&pn=83&v=' . $gglstmp_plugin_info["Version"] . '&wp_v=' . $wp_version ); 
  17.  
  18.  
  19. add_action( "load-{$settings}", 'gglstmp_add_tabs' ); 
  20.  
  21. global $gglstmp_url_home, $gglstmp_url; 
  22. $gglstmp_url_home = site_url( '/' ); 
  23. $gglstmp_url = urlencode( $gglstmp_url_home );