WP_Customize_Manager::register_section_type()publicWP 4.3.0

Registers a customize section type.

Registered types are eligible to be rendered via JS and created dynamically.

Метод класса: WP_Customize_Manager{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->register_section_type( $section );
$section(строка) (обязательный)
Name of a custom section which is a subclass of WP_Customize_Section.

Заметки

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

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

Код WP_Customize_Manager::register_section_type() WP 6.7.1

public function register_section_type( $section ) {
	$this->registered_section_types[] = $section;
}