acf_field_button_group::render_field_presentation_settings
Renders the field settings used in the "Presentation" tab.
Метод класса: acf_field_button_group{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_field_button_group = new acf_field_button_group(); $acf_field_button_group->render_field_presentation_settings( $field );
- $field(массив) (обязательный)
- The field settings array.
Список изменений
| С версии 6.0 | Введена. |
Код acf_field_button_group::render_field_presentation_settings() acf field button group::render field presentation settings ACF 6.4.2
function render_field_presentation_settings( $field ) {
acf_render_field_setting(
$field,
array(
'label' => __( 'Layout', 'acf' ),
'instructions' => '',
'type' => 'radio',
'name' => 'layout',
'layout' => 'horizontal',
'choices' => array(
'horizontal' => __( 'Horizontal', 'acf' ),
'vertical' => __( 'Vertical', 'acf' ),
),
)
);
}