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

acf_field_tab::render_field_settings() public ACF 3.6

Create extra options for your field. This is rendered when editing a field. The value of $field['name'] can be used (like bellow) to save extra data to the $field

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

Хуков нет.

Возвращает

null. Ничего.

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

$acf_field_tab = new acf_field_tab();
$acf_field_tab->render_field_settings( $field );
$field (обязательный)
-

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

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

Код acf_field_tab::render_field_settings() ACF 5.9.1

<?php
function render_field_settings( $field ) {
	
/*
	// message
	$message = '';
	$message .= '<p>' . __( 'Use "Tab Fields" to better organize your edit screen by grouping fields together.', 'acf') . '</p>';
	$message .= '<p>' . __( 'All fields following this "tab field" (or until another "tab field" is defined) will be grouped together using this field\'s label as the tab heading.','acf') . '</p>';
	
	
	// default_value
	acf_render_field_setting( $field, array(
		'label'			=> __('Instructions','acf'),
		'instructions'	=> '',
		'name'			=> 'notes',
		'type'			=> 'message',
		'message'		=> $message,
	));
*/
	
	
	// preview_size
	acf_render_field_setting( $field, array(
		'label'			=> __('Placement','acf'),
		'type'			=> 'select',
		'name'			=> 'placement',
		'choices' 		=> array(
			'top'			=>	__("Top aligned", 'acf'),
			'left'			=>	__("Left aligned", 'acf'),
		)
	));
	
	
	// endpoint
	acf_render_field_setting( $field, array(
		'label'			=> __('Endpoint','acf'),
		'instructions'	=> __('Define an endpoint for the previous tabs to stop. This will start a new group of tabs.', 'acf'),
		'name'			=> 'endpoint',
		'type'			=> 'true_false',
		'ui'			=> 1,
	));
			
}