WordPress at a glance
action is not described

delete_(meta_type)_meta action-hook . WP 3.1.0

Fires immediately before 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).

Usage

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

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

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

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

delete_metadata()
delete_(meta_type)_meta
delete_metadata_by_mid()
delete_(meta_type)_meta
wp-includes/meta.php 420
do_action( "delete_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $_meta_value );
wp-includes/meta.php 941
do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );

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

Использование не найдено.