WP_Customize_Panel::print_template
Render the panel's JS templates.
This function is only run for panel types that have been registered with WP_Customize_Manager::register_panel_type().
Method of the class: WP_Customize_Panel{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Customize_Panel = new WP_Customize_Panel(); $WP_Customize_Panel->print_template();
Notes
Changelog
| Since 4.3.0 | Introduced. |
WP_Customize_Panel::print_template() WP Customize Panel::print template code WP 6.9.1
<?php
public function print_template() {
?>
<script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>-content">
<?php $this->content_template(); ?>
</script>
<script type="text/html" id="tmpl-customize-panel-<?php echo esc_attr( $this->type ); ?>">
<?php $this->render_template(); ?>
</script>
<?php
}