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!!
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!!
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] = [...])
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!
Any help here?