delete_(meta_type)meta хук-событиеWP 3.4.0

Fires immediately before deleting post or comment metadata of a specific type.

The dynamic portion of the hook name, $meta_type, refers to the meta object type (post or comment).

Possible hook names include:

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

add_action( 'delete_(meta_type)meta', 'wp_kama_delete_meta_typemeta_action' );

/**
 * Function for `delete_(meta_type)meta` action-hook.
 * 
 * @param int $meta_id ID of the metadata entry to delete.
 *
 * @return void
 */
function wp_kama_delete_meta_typemeta_action( $meta_id ){

	// action...
}
$meta_id(int)
ID of the metadata entry to delete.

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

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

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

delete_metadata_by_mid()
delete_(meta_type)meta
wp-includes/meta.php 1057
do_action( "delete_{$meta_type}meta", $meta_id );

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

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