Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter J. Herrel diggy

View GitHub Profile
@diggy
diggy / gist:2490532
Created Apr 25, 2012
Add taxonomy navigation to the WordPress admin toolbar
View gist:2490532
<?php
add_action( 'admin_bar_menu', 'pjh_add_taxonomies_to_toolbar', 999 );
function pjh_add_taxonomies_to_toolbar( $wp_admin_bar )
{
// check permissions
if( ! current_user_can( 'manage_categories' ) ) return;
global $wp_taxonomies;