WP_Customize_Control::print_template()

Render the control’s JS template.


Description

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.


Top ↑

Source

File: wp-includes/class-wp-customize-control.php. View all references

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
}


Top ↑

Changelog

Changelog
Version Description
4.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.