acf/get_invalid_field_value хук-событиеACF 1.0

Check if we should trigger warning about accessing fields too early via action.

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

add_action( 'acf/get_invalid_field_value', 'wp_kama_acf_get_invalid_field_value_action', 10, 2 );

/**
 * Function for `acf/get_invalid_field_value` action-hook.
 * 
 * @param  $field        
 * @param  $__FUNCTION__ 
 *
 * @return void
 */
function wp_kama_acf_get_invalid_field_value_action( $field, $__FUNCTION__ ){

	// action...
}
$field
-
$__FUNCTION__
-

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

acf_get_value()
acf/get_invalid_field_value
acf/includes/acf-value-functions.php 72
do_action( 'acf/get_invalid_field_value', $field, __FUNCTION__ );

Где используется хук в Advanced Custom Fields PRO

acf/includes/acf-value-functions.php 380
add_action( 'acf/get_invalid_field_value', 'acf_log_invalid_field_notice', 10, 2 );