acf_field_image::render_field_presentation_settings()publicACF 6.0

Renders the field settings used in the "Presentation" tab.

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

Хуков нет.

Возвращает

null. Ничего.

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

$acf_field_image = new acf_field_image();
$acf_field_image->render_field_presentation_settings( $field );
$field(массив) (обязательный)
The field settings array.

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

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

Код acf_field_image::render_field_presentation_settings() ACF 6.0.4

function render_field_presentation_settings( $field ) {
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Preview Size', 'acf' ),
			'instructions' => '',
			'type'         => 'select',
			'name'         => 'preview_size',
			'choices'      => acf_get_image_sizes(),
		)
	);
}