Uses
Uses | Description |
---|---|
wp-includes/class-wp-customize-control.php: WP_Customize_Control::content_template() | An Underscore (JS) template for this control’s content (but not its container). |
Render the control’s JS template.
This function is only run for control types that have been registered with WP_Customize_Manager::register_control_type().
In the future, this will also print the template for the control’s container element and be override-able.
File: wp-includes/class-wp-customize-control.php
final public function print_template() { ?> <script type="text/html" id="tmpl-customize-control-<?php echo $this->type; ?>-content"> <?php $this->content_template(); ?> </script> <?php }
Version | Description |
---|---|
4.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/print_template