WP_Customize_Manager::get_autofocus()publicWP 4.4.0

Gets the autofocused constructs.

{} It's a 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.

Code of WP_Customize_Manager::get_autofocus() WP 6.1.1

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