Based on the first Answer from Mike Schinkel. For testing purposes in a default installation, the category is “Uncategorized”.
add_filter( 'list_terms_exclusions', 'wpse_59652_list_terms_exclusions', 10, 2 );
function wpse_59652_list_terms_exclusions( $exclusions, $args )
{
global $current_screen;
if( 'post' != $current_screen->post_type )
return $exclusions;
if( !current_user_can('delete_others_pages') )
return $exclusions;
return $exclusions . " AND ( t.name <> 'Uncategorized' )";
}
Related Posts:
- add_action hook for completely new post?
- Add screen options to custom admin pages
- Change default admin page for specific role(s)
- Dashboard like meta boxes in my plugin – how to save their position and open/closed state?
- How can i list current author’s categories?
- How to Make a Category Always Selected?
- anything like add_meta_box for categories?
- Calling clean_term_cache() fails when called in the same plugin that creates terms, succeeds when called separately?
- Missing “category_children” option when dynamically creating categories via a plugin
- Can we create a category list page in WordPress?
- Rearranging Dashboard meta boxes with use of plugin/functions.php
- prevent post to have multiple categories in my plugin
- How to create a Tools menu on the Network Admin dashboard from a plugin
- Show add_meta_box by selecting a specific category
- Which are the hooks run before/after when a category’s deletion?
- Is it possible to change a term slug before being saved to the database?
- Example Dashboard Widget, Cancel not working
- wp_insert_category() setting the ‘cat_ID’ gives not array error
- Dashboard – get status and position of metaboxes and pass them to ajax method
- “dashboard”-named PHP file doesn’t get included
- Send push when new post is published in a certain category
- How do I get the sub categories of the parent when in a sub category?
- Avoid updating post when sending POST or GET request to post.php
- Filter Categories widget to allow custom sorting?
- Function/Class to list categories with checkboxes
- How can I show posts for a single category?
- Check if post belongs to any category
- How to display the categories on page using shortcode?
- How to display the category id along with category name on categories list?
- add_action pre_term_description vs. pre_category_description
- How to show parents of current page category, excluding the category?
- WP Dropdown Categories, display subcategories but not grandchildren categories?
- Load stylesheet in edit category page?
- How to relate the Category to user?
- How to exclude categories from get_categories() select list inside a widget admin panel
- How to Show Category List With Corresponding Links?
- Exclude Woocommerce Product Category From Sitemap
- Custom Icon for Plugin
- How to show only the last two categories in a menu?
- How to show the posts listing on dashboard or custom page in admin panel?
- Determine if term is Category or Tag
- How to check category name available or not
- Quick Draft widget (dashboard.php) using custom post_type
- delete category on plugin deactivation wordpress
- Post is uncatagorized in publish_post action
- Hide post by ‘post_category’
- Woocommerce product not appearing in category list page when created programatically [closed]
- Yoast and another plugin
- Making Woocommerce optimized for more than 500k products
- Add a new tag based on the category name in the publish event
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- Creating an archive page listing external data
- Tracing dashboard publish settings from input form in WordPress
- How can i call from custom fields to the category editor?
- Create wordpress dashboard metabox which spans all columns
- What method would I use to show an image in between X amount of posts on category archive? [duplicate]
- How can I add a custom button to the post editor?
- filter on get_posts efficiently
- How to get recent one post from each category on home page?
- How do I display and edit other posts within the ‘Edit Post’ area of Wp-Admin Dashboard
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- How can I add a simple custom field to my plugin?
- Plugin does not add action
- Ajax is not working in a loop
- $wpdb->prepare with LIKE and sprintf
- Remove an action by extending class and replacing it
- How to include jQuery into my plugin so I can use it on plugin page?
- Prevent WordPress automatically processing certain URL queries
- WordPress plugin enqueue scripts working for js, but not css files
- How to import the css in the plugin admin area?
- Woocommerce order empty items array
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- ajax recursive calls on wordpress returning answers outsite the function scope
- Loading custom js file on the admin page through plugin
- esc_html__() and __() not working within arrays
- Add Password Generator on password protected page
- add_submenu_page hooked function must explicitly check user capabilities – why?
- How to get the current page Title and Page URL in footer.php
- How to apply style_loader_src filter with exclusion of a specific file?
- How do I remove folder and contents I have created while installing plugin
- Which is the better way to store images for the plugin?
- How to prevent someone from entering strings without making it available for translation?
- Run a function when new image is uploaded in media library
- Setting up Version Control for WordPress plugin development
- Ajax submit result opens in admin-ajax.php
- Readme.txt seems to be cached but not the version
- WP Enqueue style on all plug-in pages
- Add child pages to submenu automatically
- WordPress debug messages not displaying
- Creating multiple wp_editer() text fields in for loop — the text/visual switch only works for first editor
- WordPress theme options Menu
- Show message from backend
- Cannot change caption for a plugin
- Displaying “One Time” Notification in Plugins
- Move some files of plugin to the root directory with plugin activation
- Remove all removed pages from wordpress
- Is it the right way to add jquery and css in wordpress?
- Print Dashboard submenu name and filename
- How to make the first commit on WordPress.org
- Are there any security risks when submitting data-attribute data through AJAX?