WP_Customize_Panel::print_template() WordPress Method

The WP_Customize_Panel::print_template() method is used to print a panel template.

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

	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
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.