Customize WP.blogspot.com

Add Shortlink Menu Merchandise in WordPress Admin Bar

 Add Shortlink Menu Merchandise in WordPress Admin Bar

In WordPress 3.3, in an effort to attenuate muddle, WordPress UI workforce revamped the admin bar. Within the course of, they took away a fairly helpful function “Shortlink” menu from the admin bar. We’re positive the reasoning in all probability was that not sufficient of us make the most of that function nonetheless from all the facility customers we've talked with, all of them stated they discovered this function fairly helpful. For Customizewp, we've a branded shortlink (wpbeg.in), so we wanted this function badly. We requested the builders of the WP-Bit.ly plugin so as to add this function of their plugin as a result of we use them for mechanically producing branded quick url. When no motion was taken, we dugg within the core and it was fairly simple to re-add the menu merchandise again. So we added the one line of code, and there we've it. On this article, we'll present you how one can add the Shortlink Menu again to your WordPress three.three admin bar.

All you must do is add the next line of code in your features.php file or in your site-specific plugin file:

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

That’s all you must do.

For these customers who need this function with out messing with code, we did a fast analysis and located the plugin Renee Shortlink Item in Admin Bar. The code for this plugin is simply that one line as nicely, so it is rather minimal. Activate and Overlook about it.

Tutorials