[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:02:19 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 maxaud):

 I currently don't see a way to stop a term from being deleted in
 wp_delete_term function.
 I can recreate it after it's already been deleted using the do_action at
 the end but this is after all the associations have been removed.

 I have a custom taxonomy that I need to prevent some terms from being
 removed.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21150#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list