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).


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...
An array of metadata entry IDs to delete.
ID of the object metadata is for.
Metadata key.
Metadata value. Serialized if non-scalar.

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

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

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

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

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