acf_field_range::render_field_presentation_settingspublicACF 6.0

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

Method of the class: acf_field_range{}

No Hooks.

Returns

void. Nothing (null).

Usage

$acf_field_range = new acf_field_range();
$acf_field_range->render_field_presentation_settings( $field );
$field(array) (required)
The field settings array.

Changelog

Since 6.0 Introduced.

acf_field_range::render_field_presentation_settings() code ACF 6.8.8

function render_field_presentation_settings( $field ) {

	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Step Size', 'acf' ),
			'instructions' => '',
			'type'         => 'number',
			'name'         => 'step',
			'placeholder'  => '1',
		)
	);

	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Prepend', 'acf' ),
			'instructions' => __( 'Appears before the input', 'acf' ),
			'type'         => 'text',
			'name'         => 'prepend',
		)
	);

	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Append', 'acf' ),
			'instructions' => __( 'Appears after the input', 'acf' ),
			'type'         => 'text',
			'name'         => 'append',
		)
	);
}