W3cubDocs

/WordPress

WP_Customize_Manager::register_control_type( string $control )

Register a customize control type.

Description

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

Parameters

$control

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

Source

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

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

Changelog

Version Description
4.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/register_control_type