WordPress at a glance
function is not described

WP_Customize_Code_Editor_Control::content_template() public WP 4.9.0

Render a JS template for control display.

{} It's a method of the class: WP_Customize_Code_Editor_Control{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Customize_Code_Editor_Control = new WP_Customize_Code_Editor_Control();
$WP_Customize_Code_Editor_Control->content_template();

Changelog

Since 4.9.0 Introduced.

Code of WP_Customize_Code_Editor_Control::content_template() WP 5.7.2

<?php
public function content_template() {
	?>
	<# var elementIdPrefix = 'el' + String( Math.random() ); #>
	<# if ( data.label ) { #>
		<label for="{{ elementIdPrefix }}_editor" class="customize-control-title">
			{{ data.label }}
		</label>
	<# } #>
	<# if ( data.description ) { #>
		<span class="description customize-control-description">{{{ data.description }}}</span>
	<# } #>
	<div class="customize-control-notifications-container"></div>
	<textarea id="{{ elementIdPrefix }}_editor"
		<# _.each( _.extend( { 'class': 'code' }, data.input_attrs ), function( value, key ) { #>
			{{{ key }}}="{{ value }}"
		<# }); #>
		></textarea>
	<?php
}