After the release of WordPress 3.2.1 you can see a new WordPress Dashboard, I know many of us do not like it, neither do I like it, the sidebar is good but the header and etc is not, and also you can see the earlier links of clearing cache and etc will not be visible now, that’s the biggest lose for us now we cannot clear cache every now and then or do the work easily.
But now we can return our Favorite Menu and enjoy all the older links using just a WordPress Hook to add the extra links we want to the Favorite Menu just this time the location of its will be in the Top Most place were there is written Howdy, your username
.
add_filter('admin_user_info_links', 'b2k_add_custom_user_links'); function b2k_add_custom_user_links($links) { $links[] = 'Cache'; $links[] = 'Scheduled'; $links[] = '<a href="http://example.org">Just an Example link</a>'; return $links; } |
Just copy this code snippet to your functions.php
of the theme, if you are using thesis then add these code in custom_functions.php
, like this you can add as much of URL you want in the Favorite menu and do our work quickly like we used to do in earlier WordPress versions. Here is the Result of the above code
I hope all of you like your new Favorite Menu and it should reduce time taken to do that work like clearing cache.
mohammad says
it’s useful very thanks to share with us !