wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_insert_term_duplicate_term_check › Filtr WordPress Hooks

Od5.1.0
Przestarzałyn/a
› apply_filters( 'wp_insert_term_duplicate_term_check', $duplicate_term, $term, $taxonomy, $args, $tt_id )
Parametry: (5)
  • () duplicate_term Duplicate term row from terms table, if found.
    Wymagane: Tak
  • () term Term being inserted.
    Wymagane: Tak
  • () taxonomy Taxonomy name.
    Wymagane: Tak
  • () args Arguments passed to wp_insert_term().
    Wymagane: Tak
  • () tt_id term_taxonomy_id for the newly created term.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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.




Źródło

$duplicate_term = apply_filters( 'wp_insert_term_duplicate_term_check', $duplicate_term, $term, $taxonomy, $args, $tt_id );