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

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

$taxonomy

(string) Taxonomy slug.

Source Source

File: wp-includes/taxonomy.php

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.