bp_forums_add_admin_menu

The BuddyPress bp forums add admin menu function.

Description

bp_forums_add_admin_menu(); 

Usage

  1. if ( !function_exists( 'bp_forums_add_admin_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/deprecated/1.7.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_forums_add_admin_menu(); 
  7.  

Defined (1)

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

/bp-forums/deprecated/1.7.php  
  1. function bp_forums_add_admin_menu() { 
  2.  
  3. if ( !is_super_admin() ) 
  4. return false; 
  5.  
  6. $page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; 
  7.  
  8. // Add the administration tab under the "Site Admin" tab for site administrators. 
  9. $hook = add_submenu_page( $page, __( 'Forums (Legacy)', buddypress ), __( 'Forums (Legacy)', buddypress ), 'manage_options', 'bb-forums-setup', "bp_forums_bbpress_admin" ); 
  10.  
  11. // Fudge the highlighted subnav item when on the BuddyPress Forums admin page. 
  12. add_action( "admin_head-$hook", 'bp_core_modify_admin_menu_highlight' );