register_buddyboss_menu_page

The BuddyPress Global Search register buddyboss menu page function.

Description

register_buddyboss_menu_page(); 

Usage

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

Defined (1)

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

/buddypress-global-search.php  
  1. function register_buddyboss_menu_page() { 
  2. // Set position with odd number to avoid confict with other plugin/theme. 
  3. add_menu_page( 'BuddyBoss', 'BuddyBoss', 'manage_options', 'buddyboss-settings', '', buddyboss_global_search()->assets_url . '/images/logo.svg', 64.99 ); 
  4.  
  5. // To remove empty parent menu item. 
  6. add_submenu_page( 'buddyboss-settings', 'BuddyBoss', 'BuddyBoss', 'manage_options', 'buddyboss-settings' ); 
  7. remove_submenu_page( 'buddyboss-settings', 'buddyboss-settings' );