[wp-trac] [WordPress Trac] #48416: Add `saved_term` actions that fire on create and update

WordPress Trac noreply at wordpress.org
Sun Jul 5 11:12:01 UTC 2020


#48416: Add `saved_term` actions that fire on create and update
-------------------------+-----------------------------
 Reporter:  dlh          |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.5
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48314" 48314]:
 {{{
 #!CommitTicketReference repository="" revision="48314"
 Taxonomy: Introduce `saved_term` and `saved_{$taxonomy}` actions to
 complement `created_term` and `created_{$taxonomy}`.

 This allows for hooking into both the create and update events with a
 single callback, in the same way that is already possible for posts via
 the `save_post` and `save_post_{$post->post_type}` actions.

 Props dlh.
 Fixes #48416.
 }}}

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


More information about the wp-trac mailing list