wp_update_term_data WordPress Filter Hook

The wp_update_term_data hook is called after a term's data has been updated in the database. It is passed the term object and the old term object, and is used to update the term's caches.

apply_filters( 'wp_update_term_data', array $data, int $term_id, string $taxonomy, array $args ) #

Filters term data before it is updated in the database.


Parameters

$data

(array)Term data to be updated.

$term_id

(int)Term ID.

$taxonomy

(string)Taxonomy slug.

$args

(array)Arguments passed to wp_update_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