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
- Is There a Difference Between Taxonomies and Categories?
- Gutenberg editor add a custom category as wrapper for custom blocks
- How can I hide a category from Contributors in the edit/add new post screen?
- WordPress Multiple Category Search
- 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
- Delete a specific category when deleting a user
- Filter categories using tags
- Make parent categories not selectable
- How to list child categories in custom category template?
- Trash bin for categories
- How to set up sub-categories for author pages?
- View category in the preview of Theme Customizer
- One WordPress Install, Two Categories. Each Category Gets a Domain
- Block multiple categories from Blog
- How to have a static category/author page?
- Create single.php for specific category by category id
- Show posts of one category only with Custom Taxonomy on single.php
- Save metabox checkboxes values to custom content type
- Select category in custom query
- Add custom category name as data-filter to switch between these categories
- Remove “Parent” Selection When Adding/Editing Categories?
- Order Taxonomy Term by date created
- Can paginate_links() be customized for a specific category or tag?
- Filtering by Category doesnt paginate correctly on the backend
- Dropdown category filter
- Apply custom category template to subcategories
- Hide post meta data on a specific category
- Format Brand value in Category view [closed]
- Add custom taxonomy under the category title
- How to show in search results posts with a particular tag in a particular category?
- What is the advantage of using header-catname.php over is_category(‘catname’);?
- Make parent category not selectable when it has child categories
- Replace category titles
- Remove ‘rel’ attributes from the_category() output
- Multiple menu items highlighted
- 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
- Multiple Category Search
- How do I add a function on a specific post category?
- How to display posts under a specific subcategory of a given category
- Taxonomy filter all children
- Filter Home Page Posts in Buddypress [closed]
- Categorising posts/pages into years published
- How to customize category template?
- Inserting Category programmatically
- Category-slug.php not being used
- How would I go about adding custom header images per category?
- 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
- Filter Categories in meta box for CPTs
- How to categorize posts under Category 1 and Category 2 which are separate lists of categories, and display them as separate lists in widgets
- Show only first category name in RSS?
- Filter $cpt categories to omit certain category
- Filtering *out* a taxonomy from the admin post list
- How to set a filter by category within a customised page
- Is There a Difference Between Taxonomies and Categories?
- How to rewrite the post URL according to the category?
- Refine/Filter the Search Results by Category
- How to build a simple nav system of custom post type categories and its posts?
- Admin comments and user restrictions
- WordPress Post # of # filtered by category slug
- Pagination for ajax category filter
- ajax for filtering posts by category in wordpress loops
- How to hide category name
- Redirect to another page using contact form 7? [closed]
- Display thumbnails for certain category posts
- Keyword search in multiple categories
- Is it possible to remove from default category widget?
- 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
- Multiple selection for wordpress widget
- Filter WooCommerce archive pages by an additional category
- Different CSS class by category
- Portfolio Filter Buttons Wont Work
- how to nest specific category thumbnails inside different containers
- Wrong category nice name is displayed on archive page
- “Virtual category page” based on a custom field filter
- Custom tax_query filter not working for Woocommerce product categories
- How can i change what one category displays?
- Remove any product that is featured from regular display loop [WooCommerce]
- Two Sections on Woocommerce Catergory Page [closed]
- How to hide some categories in dashboard