pre_insert_term

SummerySummery

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

Syntax

apply_filters( 'pre_insert_term', string|WP_Error $term, string $taxonomy )

ParametersParameters

$term

(string|WP_Error) The term name to add or update, or a WP_Error object if there's an error.

$taxonomy

(string) Taxonomy slug.

SourceSource

File: wp-includes/taxonomy.php

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top