WP_Customize_Manager::register_control_type() WordPress Method

The WP_Customize_Manager::register_control_type() method is used to register a new Customizer control type. This is useful for creating new control types or overriding existing ones.

WP_Customize_Manager::register_control_type( string $control ) #

Registers a customize control type.


Description

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


Top ↑

Parameters

$control

(string)(Required)Name of a custom control which is a subclass of WP_Customize_Control.


Top ↑

Source

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

	public function register_control_type( $control ) {
		$this->registered_control_types[] = $control;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.1.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