The MU forums have moved to WordPress.org

Move admin panel links around (4 posts)

  1. Rubyducky
    Member
    Posted 16 years ago #

    Hello everyone,
    I'm trying to simplify up the admin panel a bit, and I was wondering how to move the link to the Profile under the Users tab to its own tab at the top. Can anyone please tell me how to do this? Thanks!!

  2. Bruz
    Member
    Posted 16 years ago #

    Rubyduck,

    habe a look on
    if ( current_user_can('edit_users') ) {
    $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
    $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
    $submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php');
    } else {
    $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
    }

    in wp-admin/menu.php. You'll need to move
    $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
    a few lines up and change it e.g. to
    $menu[27] = array(__('Your Profile'), 'read', 'profile.php');
    (put it right behind the line starting with $menu[25] = [...])

  3. Rubyducky
    Member
    Posted 16 years ago #

    Thank you, I tried that and I got

    Parse error: syntax error, unexpected $end in /opt/lampp/htdocs/wp-admin/menu.php on line 158

    No idea what that means or how to fix it, any ideas? Thanks!

  4. Rubyducky
    Member
    Posted 16 years ago #

    Any help here?

About this Topic

  • Started 16 years ago by Rubyducky
  • Latest reply from Rubyducky