WP_Customize_Manager::get_autofocus()publicWP 4.4.0

Gets the autofocused constructs.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

String[]. Mapping of 'panel', 'section', 'control' to the ID which should be autofocused.

Usage

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

Changelog

Since 4.4.0 Introduced.

WP_Customize_Manager::get_autofocus() code WP 6.6.2

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