WordPress at a glance
function is not described

WP_Customize_Panel::render_template() protected WP 4.3.0

An Underscore (JS) template for rendering this panel's container.

Class variables for this panel class are available in the data JS object; export custom variables by overriding WP_Customize_Panel::json().

{} It's a method of the class: WP_Customize_Panel{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->render_template();

Notes

  • See: WP_Customize_Panel::print_template()

Changelog

Since 4.3.0 Introduced.

Code of WP_Customize_Panel::render_template() WP 5.5.1

<?php
protected function render_template() {
	?>
	<li id="accordion-panel-{{ data.id }}" class="accordion-section control-section control-panel control-panel-{{ data.type }}">
		<h3 class="accordion-section-title" tabindex="0">
			{{ data.title }}
			<span class="screen-reader-text"><?php _e( 'Press return or enter to open this panel' ); ?></span>
		</h3>
		<ul class="accordion-sub-container control-panel-content"></ul>
	</li>
	<?php
}