acf_field_image::validate_value()publicACF 5.0.0

validate_value

This function will validate a basic file input

Метод класса: acf_field_image{}

Хуков нет.

Возвращает

$post_id. (int)

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

$acf_field_image = new acf_field_image();
$acf_field_image->validate_value( $valid, $value, $field, $input );
$valid (обязательный)
-
$value (обязательный)
-
$field (обязательный)
-
$input (обязательный)
-

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

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

Код acf_field_image::validate_value() ACF 6.0.4

function validate_value( $valid, $value, $field, $input ) {
	return acf_get_field_type( 'file' )->validate_value( $valid, $value, $field, $input );
}