bws_general_menu

The Google Captcha (reCAPTCHA) by BestWebSoft bws general menu function.

Description

bws_general_menu(); 

Usage

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

Defined (1)

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

/bws_menu/deprecated.php  
  1. function bws_general_menu() { 
  2. global $menu, $bws_general_menu_exist; 
  3.  
  4. if ( ! $bws_general_menu_exist ) { 
  5. /** we check also menu exist in global array as in old plugins $bws_general_menu_exist variable not exist */ 
  6. foreach ( $menu as $value_menu ) { 
  7. if ( 'bws_panel' == $value_menu[2] ) { 
  8. $bws_general_menu_exist = true; 
  9. return; 
  10.  
  11. add_menu_page( 'BWS Panel', 'BWS Panel', 'manage_options', 'bws_panel', 'bws_add_menu_render', 'none', '1001' ); 
  12.  
  13. add_submenu_page( 'bws_panel', __( 'Plugins', 'bestwebsoft' ), __( 'Plugins', 'bestwebsoft' ), 'manage_options', 'bws_panel', 'bws_add_menu_render' ); 
  14. add_submenu_page( 'bws_panel', __( 'Themes', 'bestwebsoft' ), __( 'Themes', 'bestwebsoft' ), 'manage_options', 'bws_themes', 'bws_add_menu_render' ); 
  15. add_submenu_page( 'bws_panel', __( 'System Status', 'bestwebsoft' ), __( 'System Status', 'bestwebsoft' ), 'manage_options', 'bws_system_status', 'bws_add_menu_render' ); 
  16.  
  17. $bws_general_menu_exist = true;