WP_Customize_Manager::register_section_type() WordPress Method

The WP_Customize_Manager::register_section_type() method is used to register a custom section type. This is useful for creating new types of sections that can be used with the WordPress Customizer.

WP_Customize_Manager::register_section_type( string $section ) #

Registers a customize section type.


Description

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

Top ↑

See also


Top ↑

Parameters

$section

(string)(Required)Name of a custom section which is a subclass of WP_Customize_Section.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More