WP_Customize_Control::print_template() WordPress Method
The WP_Customize_Control::print_template() method is used to print a custom control template. This method is used to display the control interface for a custom control. It can be used to display the control interface for a standard control, but this is not recommended. The template for a custom control is loaded from the /wp-admin/customize/controls/{$type}-template.php file.
WP_Customize_Control::print_template() #
Render the control’s JS template.
Description
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.
Source
File: wp-includes/class-wp-customize-control.php
final public function print_template() { ?> <script type="text/html" id="tmpl-customize-control-<?php echo esc_attr( $this->type ); ?>-content"> <?php $this->content_template(); ?> </script> <?php }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |