acf_field_flexible_content::render_field_presentation_settings()publicACF 6.0

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

{} Это метод класса: acf_field_flexible_content{}

Хуков нет.

Возвращает

null. Ничего.

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

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

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

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

Код acf_field_flexible_content::render_field_presentation_settings() ACF 6.0.4

function render_field_presentation_settings( $field ) {

	// min
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Minimum Layouts', 'acf' ),
			'instructions' => '',
			'type'         => 'number',
			'name'         => 'min',
		)
	);

	// max
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Maximum Layouts', 'acf' ),
			'instructions' => '',
			'type'         => 'number',
			'name'         => 'max',
		)
	);

	// add new row label
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Button Label', 'acf' ),
			'instructions' => '',
			'type'         => 'text',
			'name'         => 'button_label',
		)
	);

}