WordPress at a glance
action is not described

deleted_(meta_type)_meta action-hook . WP 2.9.0

Fires immediately after deleting metadata of a specific type.

The dynamic portion of the hook, $meta_type, refers to the meta object type (post, comment, term, user, or any other type with an associated meta table).


add_action( 'deleted_(meta_type)_meta', 'action_function_name_9767', 10, 4 );
function action_function_name_9767( $meta_ids, $object_id, $meta_key, $_meta_value ){
	// action...
An array of metadata entry IDs to delete.
ID of the object metadata is for.
Metadata key.
Metadata value. Serialized if non-scalar.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

wp-includes/meta.php 463
do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $_meta_value );
wp-includes/meta.php 965
do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );

Где используется хук в ядре WP

wp-includes/default-filters.php 104
add_action( 'deleted_post_meta', 'wp_cache_set_posts_last_changed' );
wp-includes/default-filters.php 109
add_action( 'deleted_term_meta', 'wp_cache_set_terms_last_changed' );
wp-includes/default-filters.php 122
add_action( 'deleted_comment_meta', 'wp_cache_set_comments_last_changed' );
wp-includes/ms-default-filters.php 60
add_action( 'deleted_blog_meta', 'wp_cache_set_sites_last_changed' );