do_action( "deleted_{$meta_type}meta", int $meta_id )
- Since
- 3.4.0
Fires immediately after deleting post or comment metadata of a specific type.
Description
The dynamic portion of the hook name, $meta_type, refers to the meta object type (post or comment).
Possible hook names include:
deleted_postmetadeleted_commentmeta
Compatibility
- WordPress
- since 3.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$meta_idint- Deleted metadata entry ID.
Where this hook fires · 1
wp-includes/meta.php:1118delete_metadata_by_mid()
Source code
* - `deleted_commentmeta` * * @since 3.4.0 * * @param int $meta_id Deleted metadata entry ID. */ do_action( "deleted_{$meta_type}meta", $meta_id ); } return $result; }Changelog
Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.