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?
- Change the_title() of a page dynamically
- Adding more options to the instance of an image. (Attachment Display Settings)
- What is wrong with using add_option with Multisite instead of add_blog_option in a plugin
- Trouble with Transient API when W3TC is activated [closed]
- Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php
- $wp_filesystem returns NULL. What are the dependencies?
- set_sale_price in WooCommerce [closed]
- Adding extra pages to plugin that shouldn’t appear in the sidebar
- jquery document ready function not being called [closed]
- Show User’s Current Time
- Single sanitization callback for multiple fields
- How to filter users list on user_status field with get_users()
- Where did the ability to edit a plugin go?
- Append varible to url or set session
- Adding custom end points, No error line
- Custom login doesn’t work properly
- automatic change post date when post is 30 days old
- wp_editor add media button not working
- Plugin Development – Class Constructor Not Firing wp_enqueue_style action hook
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Getting a WordPress Debug Strategy
- Add function after the_content
- How do I get variables from my plugin’s settings page?
- Unexpected T_FUNCTION
- How To Protect Plugin Display From Being Affected By Theme’s CSS
- function add custom fields to media gallery
- Add quick edit functionnality to plugin table
- using wordpress acf shortcods in tables goes outside the table
- $_SESSION inside php function executed by AJAX
- Two same AJAX calls – one is working, other doesn’t
- remove different admin menu for specific users
- add pagination to wp_remote_get
- Shortcode from a plugin not working
- How to get option values without requiring wp-load?
- Can’t get query string in ajax call
- WP Cron registers hook without any action (does not call the function)
- Fetch Custom Woocomerce filed data and check the data avialble in Wp-user table as nicname or username using function.php
- How to get locale within WP REST Request?
- How to add extra EXIF data when images are uploaded?