How to Add Shortlink Menu Item in WordPress Admin Bar

By MildTheme
In Tutorial
May 16th, 2012
9 Comments
126 Views

WordPress 3.3.1 Multiple Vulnerabilities

In WordPress 3.3, in an effort to minimize clutter, WordPress UI team revamped the admin bar. In the process, they took away a quite useful feature “Shortlink” menu from the admin bar. We’re sure the reasoning probably was that not enough folks utilize that feature however from all the power users we have talked with, they all said they found this feature quite handy. For WPBeginner, we have a branded shortlink (wpbeg.in), so we needed this feature badly. We asked the developers of the WP-Bit.ly plugin to add this feature in their plugin because we use them for automatically generating branded short url. When no action was taken, we dugg in the core and it was quite easy to re-add the menu item back. So we added the one line of code, and there we have it. In this article, we will show you how you can add the Shortlink Menu back to your WordPress 3.3 admin bar.

All you have to do is add the following line of code in your functions.php file or in your site-specific plugin file:

add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu',90 );

That’s all you have to do.

For those users who want this feature without messing with code, we did a quick research and found the plugin Renee Shortlink Item in Admin Bar. The code for this plugin is just that one line as well, so it is very minimal. Activate and Forget about it.

9 Responses to “How to Add Shortlink Menu Item in WordPress Admin Bar”

  1. Rowena Lindamood says:

    Hi there, just became alert to your blog through Google, and found that it is truly informative. I’m going to watch out for brussels. I’ll appreciate if you continue this in future. Many people will be benefited from your writing. Cheers!

  2. URL says:

    More than and more than once again I like to take into consideration this troubles. As a matter of fact it wasn’t even a month ago that I thought about this quite thing. To be honest, what could be the answer though? 535126

  3. holy cow says:

    I love your wordpress design, wherever would you get a hold of it from?

  4. SEO BOSTON says:

    “this is truly an exciting and informative pack human being published at this juncture, I could not be real surprised to see the different kindly of reactions from peoples as a number of may like it and some don’t

  5. Clayton Herkel says:

    wohh precisely what I was looking for, thanks for posting .

  6. MBT Shoes Cheap says:

    This amazing site is awesome. My spouse and i constantly run into something new & different right here. We appreciate you that files.

  7. Thanh Eckerle says:

    I’ve been in similar situations before. It is not as easy an answer as you thought it is, its something that you’ll have to think through for yourself over over some time.

  8. local seo says:

    I like the helpful information you provide in your articles. I will bookmark your blog and check again here regularly. I’m quite certain I’ll learn many new stuff right here! Good luck for the next!

  9. bobotest.com says:

    Hello, the whole thing is going perfectly here and ofcourse every one is sharing facts, that’s in fact good, keep up writing.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

facebook comments: