WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I eliminate the "featured" category (and its sub tree ) in the admin panel when the user role is not editors or admins?

share|improve this question
'Featured' category? – Rutwick Gangurde Jun 1 '12 at 5:40

It uses get_terms and wp_get_object_terms internally to get the categories. You can achieve what you want using a filter associated with these functions.

//$args = apply_filters( 'get_terms_args', $args, $taxonomies );
add_filter('get_terms_args', 'wpse53900_filter_cat');
function wpse53900_filter_cat($args, $taxonomies){
    //this is where you can check the taxonomies and roles to filter out the ones you want
    //additionally, make sure to add a check here so that your code runs only on the post edit/add screens

Should give you an idea! ;)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.