Fires immediately after deleting 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:
deleted_post_metadeleted_comment_metadeleted_term_metadeleted_user_meta$meta_idsstring[]
$object_idint
$meta_keystring
$_meta_valuemixed
do_action( "deleted_{$meta_type}_meta", $meta_ids, $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/deleted_meta_type_meta