[wp-trac] [WordPress Trac] #60532: Add a `pre_set_object_terms` action

WordPress Trac noreply at wordpress.org
Thu Feb 22 05:29:01 UTC 2024


#60532: Add a `pre_set_object_terms` action
----------------------------------------+------------------------------
 Reporter:  davidbaumwald               |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Taxonomy                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:
----------------------------------------+------------------------------
Changes (by sagarsavani7979):

 * Attachment "60532.patch" added.

 This commit adds a new action hook, 'pre_set_object_terms', to the
 wp_set_object_terms function. This hook fires before an object's terms are
 set, allowing developers to perform operations or modifications on the
 terms array before the changes are committed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60532>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list