Created
October 6, 2012 18:27
-
-
Save jb510/3845719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_before_admin_bar_render', 'jb_admin_bar_items' ); | |
/** | |
* Customize Admin Bar Items (add Plugins) | |
*/ | |
function jb_admin_bar_items() { | |
global $wp_admin_bar; | |
if ( current_user_can( 'activate_plugins' ) ) | |
$wp_admin_bar->add_menu( array( 'parent' => 'appearance', 'id' => 'plugins', 'title' => __('Plugins'), 'href' => admin_url('plugins.php') ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment