WordPress at a glance
action is not described

added_(meta_type)_meta action-hook . WP 2.9.0

Fires immediately after meta of a specific type is added.

The dynamic portion of the hook, $meta_type, refers to the meta object type (comment, post, term, or user).


add_action( 'added_(meta_type)_meta', 'action_function_name_426', 10, 4 );
function action_function_name_426( $mid, $object_id, $meta_key, $_meta_value ){
	// action...
The meta ID after successful update.
Object ID.
Meta key.
Meta value.


Since 2.9.0 Introduced.

Where the hook is called

wp-includes/meta.php 134
do_action( "added_{$meta_type}_meta", $mid, $object_id, $meta_key, $_meta_value );

Where the hook is used (in WP core)

wp-includes/default-filters.php 102
add_action( 'added_post_meta', 'wp_cache_set_posts_last_changed' );
wp-includes/default-filters.php 107
add_action( 'added_term_meta', 'wp_cache_set_terms_last_changed' );
wp-includes/default-filters.php 120
add_action( 'added_comment_meta', 'wp_cache_set_comments_last_changed' );
wp-includes/ms-default-filters.php 57
add_action( 'added_blog_meta', 'wp_cache_set_sites_last_changed' );