On this page
WP_Customize_Panel::print_template()
Render the panel’s JS templates.
Description
This function is only run for panel types that have been registered with WP_Customize_Manager::register_panel_type().
See also
Source
File: wp-includes/class-wp-customize-panel.php. View all references
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
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Customize_Panel::content_template() wp-includes/class-wp-customize-panel.php | An Underscore (JS) template for this panel’s content (but not its container). |
| WP_Customize_Panel::render_template() wp-includes/class-wp-customize-panel.php | An Underscore (JS) template for rendering this panel’s container. |
| esc_attr() wp-includes/formatting.php | Escaping for HTML attributes. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_panel/print_template