update_term_meta action-hookWP 2.9.0

Fires immediately before updating metadata of a specific type.

This is one of the variants of the dynamic hook update_(meta_type)_meta

Usage

add_action( 'update_term_meta', 'wp_kama_update_term_meta_action', 10, 4 );

/**
 * Function for `update_term_meta` action-hook.
 * 
 * @param int    $meta_id     ID of the metadata entry to update.
 * @param int    $object_id   ID of the object metadata is for.
 * @param string $meta_key    Metadata key.
 * @param mixed  $_meta_value Metadata value.
 *
 * @return void
 */
function wp_kama_update_term_meta_action( $meta_id, $object_id, $meta_key, $_meta_value ){

	// action...
}
$meta_id(int)
ID of the metadata entry to update.
$object_id(int)
ID of the object metadata is for.
$meta_key(string)
Metadata key.
$_meta_value(mixed)
Metadata value.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

update_metadata()
update_term_meta
wp-includes/meta.php 290
do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value );

Where the hook is used in WordPress

Usage not found.