[wp-trac] [WordPress Trac] #58404: Add pre_update_term filter hook

WordPress Trac noreply at wordpress.org
Sun Sep 17 18:11:34 UTC 2023


#58404: Add pre_update_term filter hook
-------------------------------------------------+-------------------------
 Reporter:  kobi1                                |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.4
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests changes-  |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------

Comment (by oglekler):

 Hi @nihar007, I assume this filter needs to be covered with Unit test to
 ensure that it will be present and working from now on. I suppose, it
 should be going into `tests\phpunit\tests\term\wpUpdateTerm.php`
 and `test_count_should_not_pass_through_main_get_terms_filter()` function
 can be used as an example of a test or https://github.com/WordPress
 /wordpress-develop/pull/4717/files - this can be useful as well.

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


More information about the wp-trac mailing list