acf/delete_value action-hookACF 5.0.0

Fires before a value is deleted.

Usage

add_action( 'acf/delete_value', 'wp_kama_acf_delete_value_action', 10, 3 );

/**
 * Function for `acf/delete_value` action-hook.
 * 
 * @param string $post_id The post ID for this value.
 * @param mixed  $name    The meta name.
 * @param array  $field   The field array.
 *
 * @return void
 */
function wp_kama_acf_delete_value_action( $post_id, $name, $field ){
	// action...
}
$post_id(string)
The post ID for this value.
$name(mixed)
The meta name.
$field(array)
The field array.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

acf_delete_value()
acf/delete_value
acf/includes/acf-value-functions.php 337
do_action( 'acf/delete_value', $post_id, $field['name'], $field );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.