Fires immediately before updating metadata of a specific type.
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:
update_post_metaupdate_comment_metaupdate_term_metaupdate_user_meta$meta_idint
$object_idint
$meta_keystring
$_meta_valuemixed
do_action( "update_{$meta_type}_meta", $meta_id, $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/update_meta_type_meta