pre_insert_term

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$term

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

$taxonomy

Taxonomy slug.

Source Source

File: wp-includes/taxonomy.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply