Used By
Used By | Description |
---|---|
wp-includes/taxonomy.php: wp_insert_term() | Add a new term to the database. |
Filters the duplicate term check that takes place during term creation.
Term parent+taxonomy+slug combinations are meant to be unique, and wp_insert_term() performs a last-minute confirmation of this uniqueness before allowing a new term to be created. Plugins with different uniqueness requirements may use this filter to bypass or modify the duplicate-term check.
(object) Duplicate term row from terms table, if found.
(string) Term being inserted.
(string) Taxonomy name.
(array) Term arguments passed to the function.
(int) term_taxonomy_id for the newly created term.
File: wp-includes/taxonomy.php
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_insert_term_duplicate_term_check