WP_Customize_Panel::print_template()publicWP 4.3.0

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.

Return

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() code WP 6.5.2

<?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
}