Summery Summery
Filters the duplicate term check that takes place during term creation.
Syntax Syntax
Description Description
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.
Parameters Parameters
- $duplicate_term
-
Duplicate term row from terms table, if found.
- $term
-
Term being inserted.
- $taxonomy
-
Taxonomy name.
- $args
-
Term arguments passed to the function.
- $tt_id
-
term_taxonomy_id for the newly created term.
Source Source
File: wp-includes/taxonomy.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |