acf_field_select::render_field_validation_settingspublicACF 6.0

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

Method of the class: acf_field_select{}

No Hooks.

Returns

null. Nothing (null).

Usage

$acf_field_select = new acf_field_select();
$acf_field_select->render_field_validation_settings( $field );
$field(array) (required)
The field settings array.

Changelog

Since 6.0 Introduced.

acf_field_select::render_field_validation_settings() code ACF 6.8.8

public function render_field_validation_settings( $field ) {
	acf_render_field_setting(
		$field,
		array(
			'label'        => __( 'Allow Null', 'acf' ),
			'instructions' => '',
			'name'         => 'allow_null',
			'type'         => 'true_false',
			'ui'           => 1,
		)
	);
}