WordPress uses the WP_List_Table
class, or some extension of it, to generate those lists. In this case, it is the WP_Terms_List_Table
class. That class contains a filter called {$taxonomy}_row_actions
.
add_filter(
'category_row_actions',
function($actions, $tag) {
$no_del = array(11,22,33);
if (in_array($tag->term_id,$no_del)) {
unset($actions['delete']);
}
return $actions;
},
10,2
);
Related Posts:
- How to organize custom categories for filtering and selecting
- Gutenberg editor add a custom category as wrapper for custom blocks
- How to remove categories filter from wordpress admin?
- Decreasing the Memory Consumption of a WordPress Site?
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Category Archive
- How can I select a primary category?
- how to use a different domain/subdomain for authors/catagories on single site?
- Deleting default category in wordpress
- Filter categories using tags
- Make parent categories not selectable
- How to set up sub-categories for author pages?
- One WordPress Install, Two Categories. Each Category Gets a Domain
- How to have a static category/author page?
- Create single.php for specific category by category id
- Save metabox checkboxes values to custom content type
- Select category in custom query
- Remove “Parent” Selection When Adding/Editing Categories?
- Order Taxonomy Term by date created
- Can paginate_links() be customized for a specific category or tag?
- Hide post meta data on a specific category
- Format Brand value in Category view [closed]
- What is the advantage of using header-catname.php over is_category(‘catname’);?
- Make parent category not selectable when it has child categories
- Remove ‘rel’ attributes from the_category() output
- Hide posts of a certain category unless logged in
- in_category() works in single.php but not in page.php?
- Use a wordpress page to display a certain category
- What’s the Simplest Way to Override/Rewrite the %category% Permalink Structure Tag?
- How to view WordPress’ default category IDs?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- How to display posts under a specific subcategory of a given category
- Taxonomy filter all children
- Categorising posts/pages into years published
- Automatically set default password to all posts in a specific category
- get_the_categories filter returns an empty array
- category filter doesn’t work in WPML
- Query posts from category based on a filter most favorited
- Automatically exclude categories from metabox based on title
- Display posts separated by Category in Author’s page
- How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets
- Filtering *out* a taxonomy from the admin post list
- Is There a Difference Between Taxonomies and Categories?
- Refine/Filter the Search Results by Category
- How to build a simple nav system of custom post type categories and its posts?
- Pagination for ajax category filter
- How to hide category name
- Keyword search in multiple categories
- How to customize my category pages
- Two columns in homepage each with one category
- Overriding default calendar to show posts from a category
- How can I display tags as categories?
- Display all product tags associated with a specific product category
- Filter WooCommerce archive pages by an additional category
- Portfolio Filter Buttons Wont Work
- how to nest specific category thumbnails inside different containers
- “Virtual category page” based on a custom field filter
- How can i change what one category displays?
- Two Sections on Woocommerce Catergory Page [closed]
- How to hide some categories in dashboard
- How to let the user create a selection of categories via the backend
- Add code to header based on category for specific posts?
- Custom css per category and per single post belong in each category
- How to hide widget from certain category
- How can I filter posts by tag on the fly
- How to add icon over specific thumb
- Problem with Custom Post Type Categories
- List post only under the category, exclude child category content
- SQL query to get posts from multiple categories but not in a category
- Custom Portfolio Page
- I need advice on how to structure the categories according to the layout i have
- How to add meta description, keywords, custom title to a category template
- separate posts to have (kind of) 2 blogs?
- 3.1 post formats and specific categories/custom taxonomies
- Exclude posts without category from loop
- Add filter for specific category only
- How to create category filter on a blog like on the site below?
- How to filter tags by category?
- Custom Taxonomy Isotope Grid – Filter Buttons Not Working
- How to exclude a category returned by get_categories from function.php?
- Can’t display posts by filtering categories using isotope.js
- Correct Hook/Filter to amend category choices on post edit page
- How can I make a category function as a page?
- Default URL for category dropdown select option
- Need help to structure our a complex hierarchy
- ACF Gallery with Media Categories – how do display categories and sort
- Inserting categories as a hierarchical terms from frontend form
- How to add a post with new Taxonomy without assigning to default category?
- Getting page/category content to show up in my custom page template
- How do you add Author and date Published on Category Pages?
- Own Custom Tags/Category page ( posts)
- Gettind 404 not found wen click the view button for a given category custom post type portfolio
- How to create default categories in new installs?
- display certain category on custom template page
- Custom built theme won’t filter categories
- List all authors by matching custom meta data on a category page
- Custom permalinks structure
- How to create a photo gallery that can be filtered by the image categories
- Replace category titles inside RSS feed
- I need to get all categories from a WP_Query