Add custom links in 3.0 admin quick nav

Visual Composer Review - frontend editor

Adding this snippet to the functions.php of your wordpress theme will allow you to customize the wordpress 3.0 admin quick nav menu. This includes the welcome message and any of the links within the quick nav menu.

Code Snippet:

add_filter( 'admin_user_info_links', 'filter_user_admin_menu' );
function filter_user_admin_menu()
global $current_user;
$links = array();
$links[5] = sprintf( __('Sup!, %1$s'), $current_user->display_name );
$links[6] = '<a href="users.php" title="Manage Users">Manage Users</a>';
if ( current_user_can( 'publish_posts' ) ) $links[10] = '<a href="' . admin_url() . 'edit.php" title="">Manage Posts</a>';
$links[14] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>';
$links[15] = '<a href="' . wp_logout_url() . '" title="' . esc_attr__('Log Out') . '">' . __('Log Out') . '</a>';
return $links;

Comments  Leave a Reply

  1. great trick. wordpress should have roled it out by default. great share

    1. Cool glad to hear you like the snippet.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!