WP_Customize_Control::print_template()
Render the control's JS template.
This function is only run for control types that have been registered with WP_Customize_Manager::register_control_type().
In the future, this will also print the template for the control's container element and be override-able.
Метод класса: WP_Customize_Control{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Customize_Control = new WP_Customize_Control(); $WP_Customize_Control->print_template();
Список изменений
С версии 4.1.0 | Введена. |
Код WP_Customize_Control::print_template() WP Customize Control::print template WP 6.5.2
<?php final public function print_template() { ?> <script type="text/html" id="tmpl-customize-control-<?php echo esc_attr( $this->type ); ?>-content"> <?php $this->content_template(); ?> </script> <?php }