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

WP_Customize_Manager::get_autofocus() WP 4.4.0

Get the autofocused constructs.

Это метод класса: WP_Customize_Manager

Хуков нет.

Возвращает

Массив. Mapping of 'panel', 'section', 'control' to the ID which should be autofocused.

  • [$control] (строка)
    ID for control to be autofocused.

  • [$section] (строка)
    ID for section to be autofocused.

  • [$panel] (строка)
    ID for panel to be autofocused.

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

$WP_Customize_Manager = new WP_Customize_Manager();
$var = $WP_Customize_Manager->get_autofocus();

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

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

Код WP Customize Manager::get autofocus: wp-includes/class-wp-customize-manager.php WP 5.3.2

<?php
public function get_autofocus() {
	return $this->autofocus;
}