[wp-trac] [WordPress Trac] #58404: pre_edit_term filter

WordPress Trac noreply at wordpress.org
Thu May 25 10:13:14 UTC 2023


#58404: pre_edit_term filter
----------------------------+-----------------------------
 Reporter:  kobi1           |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Taxonomy        |    Version:  6.2.2
 Severity:  critical        |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hi
 In file:
 {{{
 wp-includes/taxonomy.php
 }}}
 In function:
 {{{
 wp_update_term
 }}}

 How can to validate a custom term before updated?
 A filter needs here like pre_insert_term in wp_insert_term() functin.
 I think this filter has been forgotten in here.

 {{{
 $term = apply_filters( 'pre_edit_term', $term, $taxonomy, $args );
 }}}

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


More information about the wp-trac mailing list