WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

ACF_Field_User::render_field_settings() public ACF 3.6.0

Renders the field settings HTML.

{} Это метод класса: ACF_Field_User{}

Хуков нет.

Возвращает

null.

Использование

$ACF_Field_User = new ACF_Field_User();
$ACF_Field_User->render_field_settings( $field );
$field(массив) (обязательный)
The ACF field.

Список изменений

С версии 3.6.0 Введена.

Код ACF_Field_User::render_field_settings() ACF 5.9.1

<?php
function render_field_settings( $field ) {
	
	acf_render_field_setting( $field, array(
		'label'			=> __('Filter by role','acf'),
		'instructions'	=> '',
		'type'			=> 'select',
		'name'			=> 'role',
		'choices'		=> acf_get_user_role_labels(),
		'multiple'		=> 1,
		'ui'			=> 1,
		'allow_null'	=> 1,
		'placeholder'	=> __("All user roles",'acf'),
	));
	
	acf_render_field_setting( $field, array(
		'label'			=> __('Allow Null?','acf'),
		'instructions'	=> '',
		'name'			=> 'allow_null',
		'type'			=> 'true_false',
		'ui'			=> 1,
	));
	
	acf_render_field_setting( $field, array(
		'label'			=> __('Select multiple values?','acf'),
		'instructions'	=> '',
		'name'			=> 'multiple',
		'type'			=> 'true_false',
		'ui'			=> 1,
	));
	
	acf_render_field_setting( $field, array(
		'label'			=> __('Return Format','acf'),
		'instructions'	=> '',
		'type'			=> 'radio',
		'name'			=> 'return_format',
		'choices'		=> array(
			'array'			=> __("User Array",'acf'),
			'object'		=> __("User Object",'acf'),
			'id'			=> __("User ID",'acf'),
		),
		'layout'	=>	'horizontal',
	));
}