Fires immediately after meta of a specific type is added.
The dynamic portion of the hook name, $meta_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).
Possible hook names include:
added_post_metaadded_comment_metaadded_term_metaadded_user_meta$midint
$object_idint
$meta_keystring
$_meta_valuemixed
This hook is called at the end of add_metadata() function.
do_action( "added_{$meta_type}_meta", $mid, $object_id, $meta_key, $_meta_value );
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/added_meta_type_meta