Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/taxonomy.php | apply_filters | 2353 | /** * Filters a term before it is sanitized and inserted into the database. * * @since 3.0.0 * @since 6.1.0 The `$args` parameter was added. * * @param string|WP_Error $term The term name to add, or a WP_Error object if there's an error. * @param string $taxonomy Taxonomy slug. * @param array|string $args Array or query string of arguments passed to wp_insert_term(). */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string|WP_Error | $term | The term name to add, or a WP_Error object if there's an error. |
string | $taxonomy | Taxonomy slug. |
array|string | $args | Array or query string of arguments passed to wp_insert_term(). |