Skip to:

moving BP User menu to WP admin menu: how?

  • Avatar of noise


    (I posted this in another form but I think it’s more appropriate here)

    Hey there – I’ve searched all through the form here and google’d but still can’t figure it out.

    I need to move the BP user menu (the one on the top right in the admin bar) to the WP admin menu (the one that runs vertically down the left – not the wp admin bar).

    We’ve already got a custom Admin theme going and know how to add top level tabs to the WP admin menu but can’t find the appropriate hook.

    I’ve been playing around with
    add_action( ‘admin_menu’, ‘bp_admin_bar_my_account_root()’ );
    but so far no luck.

    Looked at the plugins but they only seem to modify the menu’s that we’re trying to move.

    Any ideas?

    Thanks muchly

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of noise


    Got an update as I saw others on the web trying to find a solution:

    The following will output the appropriate links when put in an admin page:

  • Profile
  • Settings
  • Friends
  • `

    The following function puts a tab in the admin menu (this as a submenu under the profile.php) and that allows a url to be directly linked to it (as opposed to being launched from a admin page)

    function admin_menu_new_items() {
    global $submenu;
    $submenu['profile.php'][232] = array( ‘Menu item name’, ‘edit_posts’ , ‘’ );

    add_action( ‘admin_menu’ , ‘admin_menu_new_items’ );

    So now just have to load the bp_loggedin_user_domain().'profile/'` into a variable I can put in the above string.

    Still trying to figure that one out.

Avatar of noise


wow – for some reason the above got totally borked:

the first `

  • ` item should read `”echo bp_loggedin_user_domain().’profile/'”` in between the php tags
  • Viewing 2 replies - 1 through 2 (of 2 total)

    You must be logged in to reply to this topic.