deleted_(meta_type)meta action-hook . WP 3.4.0
Fires immediately after deleting post or comment metadata of a specific type.
The dynamic portion of the hook, $meta_type, refers to the meta object type (post or comment).
Usage
add_action( 'deleted_(meta_type)meta', 'action_function_name_4915' ); function action_function_name_4915( $meta_ids ){ // action... }
- $meta_ids(int)
- Deleted metadata entry ID.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
deleted_(meta_type)meta
wp-includes/meta.php 979
do_action( "deleted_{$meta_type}meta", $meta_id );
Where in WP core the hook is used WordPress
wp-includes/meta.php 104
add_action( 'deleted_post_meta', 'wp_cache_set_posts_last_changed' );
wp-includes/meta.php 109
add_action( 'deleted_term_meta', 'wp_cache_set_terms_last_changed' );
wp-includes/meta.php 122
add_action( 'deleted_comment_meta', 'wp_cache_set_comments_last_changed' );
wp-includes/meta.php 60
add_action( 'deleted_blog_meta', 'wp_cache_set_sites_last_changed' );