delete_usermeta action-hookWP 3.4.0

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

This is one of the variants of the dynamic hook delete_(meta_type)meta

Usage

add_action( 'delete_usermeta', 'wp_kama_delete_usermeta_action' );

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

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

Changelog

Since 3.4.0 Introduced.

Where the hook is called

delete_metadata_by_mid()
delete_usermeta
delete_usermeta()
delete_usermeta
wp-includes/meta.php 1057
do_action( "delete_{$meta_type}meta", $meta_id );
wp-includes/deprecated.php 2243
do_action( 'delete_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );

Where the hook is used in WordPress

Usage not found.