Tag WP.blogspot.com

The right way to Add the Theme Editor in WordPress Admin Bar

The right way to Add the Theme Editor in WordPress Admin Bar

Previously we've got proven you how you can add the shortlink menu, draft posts, and other things to the WordPress admin bar. On this article, we are going to present you how you can add the Theme Editor in WordPress Admin Bar.

All it is advisable do is both open your site-specific plugin or your theme’s features.php file and paste the next code:

// Add Theme Editor to Admin Bar (to avoid wasting time!)
operate admin_bar_theme_editor_option() 

add_action( 'admin_bar_menu', 'admin_bar_theme_editor_option', 100 );

That's it. We discovered this code floating round on the WordCamp Nashville Hashtag. We tried it on WordPress three.three.2 and it really works. The code ought to work for different variations as properly.

Tutorials