[wp-trac] [WordPress Trac] #21150: Add a way to prevent a term from being deleted
WordPress Trac
noreply at wordpress.org
Thu Jun 27 22:52:53 UTC 2013
#21150: Add a way to prevent a term from being deleted
--------------------------+----------------------
Reporter: wpsmith | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version:
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Comment (by markoheijnen):
This ticket is about having a default term for a taxonomy. You can set the
option 'default' . $taxonomy to the id of the default term. You can also
use a filter if desired or needed. But this only works for the list table
row actions and not when using wp_delete_term() directly. What happens
when you do bulk delete.
In your case you can use tag_row_actions or {$taxonomy}_row_actions with
the same flaws. I don't think the filter 'has_cap' will do any good. Not
sure if there is a ticket for meta_cap support for taxonomies.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21150#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list