WP_Customize_Manager::register_control_type( string $control )
Register a customize control type.
Description Description
Registered types are eligible to be rendered via JS and created dynamically.
Parameters Parameters
- $control
-
(string) (Required) Name of a custom control which is a subclass of WP_Customize_Control.
Source Source
File: wp-includes/class-wp-customize-manager.php
public function register_control_type( $control ) { $this->registered_control_types[] = $control; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
For context and additional information on registered control types, see https://make.wordpress.org/core/2014/11/17/jsunderscore-template-rendered-custom-customizer-controls-in-wordpress-4-1/.