delete_postmeta WordPress Action Hook
The delete_postmeta Wordpress hook is called when a post's meta data is deleted. This hook is useful for plugins that need to do something when a post's meta data is deleted, such as cleaning up after themselves or doing some other kind of cleanup.
do_action( 'delete_postmeta', string[] $meta_ids ) #
Fires immediately before deleting metadata for a post.
Parameters
- $meta_ids
(string[])An array of metadata entry IDs to delete.
Source
File: wp-includes/meta.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |