bp_registration_options_plugin_menu

Register our plugins menus.

Description

bp_registration_options_plugin_menu(); 

Usage

  1. if ( !function_exists( 'bp_registration_options_plugin_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_registration_options_plugin_menu(); 
  7.  

Defined (1)

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

/includes/admin.php  
  1. function bp_registration_options_plugin_menu() { 
  2. global $blog_id; 
  3.  
  4.  
  5. $capability = ( is_multisite() ) ? 'create_users' : 'delete_users'; 
  6.  
  7. /** 
  8. * Filters the minimum capability needed to view options page. 
  9. * @since 4.3.0 
  10. * @param string $capability Minimal capability required. 
  11. */ 
  12. $minimum_cap = apply_filters( 'bp_registration_filter_minimum_caps', $capability ); 
  13.  
  14. add_menu_page( 
  15. __( 'BP Registration', 'bp-registration-options' ),  
  16. __( 'BP Registration', 'bp-registration-options' ),  
  17. $minimum_cap,  
  18. bp_registration_options,  
  19. 'dashicons-groups' 
  20. ); 
  21.  
  22. $count = '<span class="update-plugins count-' . $member_requests . '"><span class="plugin-count">' . $member_requests . '</span></span>'; 
  23.  
  24. add_submenu_page( 
  25. bp_registration_options,  
  26. __( 'Member Requests ', 'bp-registration-options' ) . $member_requests,  
  27. __( 'Member Requests ', 'bp-registration-options' ) . $count,  
  28. $minimum_cap,  
  29. ); 
  30.  
  31. /**add_submenu_page( 
  32. bp_registration_options,  
  33. __( 'Banned Sources', 'bp-registration-options' ),  
  34. __( 'Banned Sources', 'bp-registration-options' ),  
  35. $minimum_cap,  
  36. );*/ 
  37.  
  38. /**add_submenu_page( 
  39. bp_registration_options,  
  40. __( 'Help / Support', 'bp-registration-options' ),  
  41. __( 'Help / Support', 'bp-registration-options' ),  
  42. $minimum_cap,  
  43. );*/