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



pre_insert_term › Filtr WordPress Hooks

Od6.1.0
Przestarzałyn/a
apply_filters( 'pre_insert_term', $term, $taxonomy, $args )
Parametry: (3)
  • (string|WP_Error) $term The term name to add, or a WP_Error object if there's an error.
    Wymagane: Tak
  • (string) $taxonomy Taxonomy slug.
    Wymagane: Tak
  • (array|string) $args Array or query string of arguments passed to wp_insert_term().
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters a term before it is sanitized and inserted into the database.





Źródło

$term = apply_filters( 'pre_insert_term', $term, $taxonomy, $args );