add_term_meta action-hookWP 3.1.0

Fires immediately before meta of a specific type is added.

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

Usage

add_action( 'add_term_meta', 'wp_kama_add_term_meta_action', 10, 3 );

/**
 * Function for `add_term_meta` action-hook.
 * 
 * @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_add_term_meta_action( $object_id, $meta_key, $_meta_value ){

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

Changelog

Since 3.1.0 Introduced.

Where the hook is called

add_metadata()
add_term_meta
wp-includes/meta.php 117
do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value );

Where the hook is used in WordPress

Usage not found.