WP_Customize_Control::content_template() WordPress Method
The WP_Customize_Control::content_template() method allows you to add custom content to a WordPress Customizer control. This is useful if you want to add extra information or options to your control.
WP_Customize_Control::content_template() #
An Underscore (JS) template for this control’s content (but not its container).
Description
Class variables for this control class are available in the data
JS object; export custom variables by overriding WP_Customize_Control::to_json().
See also
Source
File: wp-includes/class-wp-customize-control.php
protected function content_template() {}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |