WordPress at a glance
функция не описана

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

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

Хуков нет.

Возвращает

Null. Ничего.

Использование

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

Заметки

  • See: WP_Customize_Manager::register_panel_type()

Changelog

Since 4.3.0 Introduced.

Код WP_Customize_Panel::print_template() WP 5.5.1

<?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
}