WP_Customize_Section::print_template() WordPress Method

The WP_Customize_Section::print_template() method is used to print a template for a customizer section. This template can be used to display the section's content in the customizer interface.

WP_Customize_Section::print_template() #

Render the section’s JS template.


Description

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

Top ↑

See also


Top ↑

Source

File: wp-includes/class-wp-customize-section.php

	public function print_template() {
		?>
		<script type="text/html" id="tmpl-customize-section-<?php echo $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.