acf_field_image::format_value_for_rest
Apply basic formatting to prepare the value for default REST output.
Метод класса: acf_field_image{}
Хуков нет.
Возвращает
Разное.
Использование
$acf_field_image = new acf_field_image(); $acf_field_image->format_value_for_rest( $value, $post_id, $field );
- $value(разное) (обязательный)
- The field value.
- $post_id(строка|int) (обязательный)
- The post ID.
- $field(массив) (обязательный)
- The field array.
Код acf_field_image::format_value_for_rest() acf field image::format value for rest ACF 6.4.2
public function format_value_for_rest( $value, $post_id, array $field ) {
return acf_format_numerics( $value );
}