wp_insert_term_data WordPress Filter Hook

The wp_insert_term_data hook is called when a new term is created or updated. It allows you to modify the term data before it is saved to the database. This hook is called after the term data has been sanitized but before it is saved to the database.

apply_filters( 'wp_insert_term_data', array $data, string $taxonomy, array $args ) #

Filters term data before it is inserted into the database.


Parameters

$data

(array)Term data to be inserted.

$taxonomy

(string)Taxonomy slug.

$args

(array)Arguments passed to wp_insert_term().


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More