deleted_commentmeta
Fires immediately after deleting post or comment metadata of a specific type.
This is one of the variants of the dynamic hook deleted_(meta_type)meta
Usage
add_action( 'deleted_commentmeta', 'wp_kama_deleted_commentmeta_action' ); /** * Function for `deleted_commentmeta` action-hook. * * @param int $meta_id Deleted metadata entry ID. * * @return void */ function wp_kama_deleted_commentmeta_action( $meta_id ){ // action... }
- $meta_id(int)
- Deleted metadata entry ID.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
deleted_commentmeta
wp-includes/meta.php 1089
do_action( "deleted_{$meta_type}meta", $meta_id );