WP_Customize_Panel::print_template()

Render the panel’s JS templates.


Description

This function is only run for panel types that have been registered with WP_Customize_Manager::register_panel_type().

Top ↑

See also


Top ↑

Source

File: wp-includes/class-wp-customize-panel.php. View all references

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
}


Top ↑

Changelog

Changelog
Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.