[wp-trac] [WordPress Trac] #53613: Add filter to prevent term deletion

WordPress Trac noreply at wordpress.org
Sat Jul 17 05:17:33 UTC 2021


#53613: Add filter to prevent term deletion
-----------------------------------+------------------------------
 Reporter:  davedoesthings         |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Taxonomy               |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------

Comment (by davedoesthings):

 Thanks @jorbin, `map_meta_cap` does indeed resolve the original need here,
 thanks for the suggestion!

 I think that filter could use some additional documentation, I may raise a
 meta trac ticket. Either that or leave some examples on that page; some
 were included in a release post that John Blackbourn made a while ago.

 In terms of additional use cases, does the use of `map_meta_cap` cover off
 any programmatical rather than manual deletions? This is the only other
 use case I can think of right now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53613#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list