WordPress at a glance
function is not described

WP_Customize_Panel::print_template() WP 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().

This is a method of the class: WP_Customize_Panel

No Hooks.

Return

Null. Nothing.

Usage

$WP_Customize_Panel = new WP_Customize_Panel();
$var = $WP_Customize_Panel->print_template();

Notes

  • See: WP_Customize_Manager::register_panel_type()

Changelog

Since 4.3.0 Introduced.

Code of WP Customize Panel::print template: wp-includes/class-wp-customize-panel.php WP 5.4.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
}