Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] howdy and notifications on the left of admin bar

Viewing 1 replies (of 1 total)

  • lustek
    Participant

    @lustek

    i figured it out myself. the code i added to chouf’s function is:

    $my_account_node = $wp_admin_bar->get_node(‘my-account’);
    //remove the edit profile node
    $wp_admin_bar->remove_menu(‘my-account’);
    //add it again to reorder
    foreach($my_account_node as $key => $value)
    {
    $my_account_node->$key = str_replace(‘top-secondary’, ‘root-default’,$value);
    }
    $wp_admin_bar->add_menu($my_account_node);

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] howdy and notifications on the left of admin bar’ is closed to new replies.
Skip to toolbar