Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/26/2012 03:47:11 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Admin Menus:

  • Add missing separator if network activated.
  • Experiment with moving top level menus out of limbo and into the "content" section of the $menus global.
  • Add functions to activity and groups components to hook them into the relocated menu items array.
  • Introduce functions to reorder top level component menu items accordingly (props bbPress.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r6609 r6676  
    4545}
    4646add_action( bp_core_admin_hook(), 'bp_activity_add_admin_menu' );
     47
     48/**
     49 * Add activity component to custom menus array
     50 *
     51 * @since BuddyPress (1.7)
     52 *
     53 * @param array $custom_menus
     54 * @return array
     55 */
     56function bp_activity_admin_menu_order( $custom_menus = array() ) {
     57    array_push( $custom_menus, 'bp-activity' );
     58    return $custom_menus;
     59}
     60add_filter( 'bp_admin_menu_order', 'bp_activity_admin_menu_order' );
    4761
    4862/**
Note: See TracChangeset for help on using the changeset viewer.