WP_Customize_Panel::print_template
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().
Метод класса: WP_Customize_Panel{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Customize_Panel = new WP_Customize_Panel(); $WP_Customize_Panel->print_template();
Заметки
Список изменений
| С версии 4.3.0 | Введена. |
Код WP_Customize_Panel::print_template() WP Customize Panel::print template WP 6.9
<?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
}