bp_activity_admin_menu_order( array $custom_menus = array() )
Add activity component to custom menus array.
Description Description
Several BuddyPress components have top-level menu items in the Dashboard, which all appear together in the middle of the Dashboard menu. This function adds the Activity page to the array of these menu items.
Parameters Parameters
- $custom_menus
-
(Optional) The list of top-level BP menu items.
Default value: array()
Return Return
(array) $custom_menus List of top-level BP menu items, with Activity added.
Source Source
File: bp-activity/bp-activity-admin.php
function bp_activity_admin_menu_order( $custom_menus = array() ) {
array_push( $custom_menus, 'bp-activity' );
return $custom_menus;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |