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