acf_field_flexible_content::render_field_presentation_settings
Renders the field settings used in the "Presentation" tab.
Method of the class: acf_field_flexible_content{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_flexible_content = new acf_field_flexible_content(); $acf_field_flexible_content->render_field_presentation_settings( $field );
- $field(array) (required)
- The field settings array.
Changelog
| Since 6.0 | Introduced. |
acf_field_flexible_content::render_field_presentation_settings() acf field flexible content::render field presentation settings code 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',
)
);
}