Fires immediately before 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:
add_post_metaadd_comment_metaadd_term_metaadd_user_meta$object_idint
$meta_keystring
$_meta_valuemixed
do_action( "add_{$meta_type}_meta", $object_id, $meta_key, $_meta_value );
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_meta_type_meta