bp_activity_add_admin_menu

Register the Activity component admin screen.

Description

bp_activity_add_admin_menu(); 

Usage

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

Defined (1)

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

/bp-activity/bp-activity-admin.php  
  1. function bp_activity_add_admin_menu() { 
  2.  
  3. // Add our screen. 
  4. $hook = add_menu_page( 
  5. _x( 'Activity', 'Admin Dashbord SWA page title', buddypress ),  
  6. _x( 'Activity', 'Admin Dashbord SWA menu', buddypress ),  
  7. 'bp_moderate',  
  8. 'bp-activity',  
  9. 'div' 
  10. ); 
  11.  
  12. // Hook into early actions to load custom CSS and our init handler. 
  13. add_action( "load-$hook", 'bp_activity_admin_load' );