Fires immediately before deleting post or comment metadata of a specific type.
The dynamic portion of the hook name, $meta_type, refers to the meta object type (post or comment).
Possible hook names include:
delete_postmetadelete_commentmetadelete_termmetadelete_usermeta$meta_idint
do_action( "delete_{$meta_type}meta", $meta_id );
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_meta_typemeta