acf/delete_value
Fires before a value is deleted.
Использование
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(строка)
- The post ID for this value.
- $name(разное)
- The meta name.
- $field(массив)
- The field array.
Список изменений
С версии 5.0.0 | Введена. |
Где вызывается хук
acf/delete_value
acf/includes/acf-value-functions.php 310
do_action( 'acf/delete_value', $post_id, $field['name'], $field );