acf_field_flexible_content::render_field_presentation_settings
Renders the field settings used in the "Presentation" tab.
Метод класса: acf_field_flexible_content{}
Хуков нет.
Возвращает
null. Ничего (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 field flexible content::render field presentation settings ACF 6.4.2
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',
)
);
}