WP_Customize_Image_Control::render_content()

Render the control’s content.


Description Description


Source Source

File: wp-includes/class-wp-customize-control.php

	 * 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.
	 *
	 * @since 4.1.0
	 */
	final public function print_template() {
		?>
		<script type="text/html" id="tmpl-customize-control-<?php echo $this->type; ?>-content">
			<?php $this->content_template(); ?>
		</script>
		<?php
	}

	/**
	 * An Underscore (JS) template for this control's content (but not its container).
	 *
	 * Class variables for this control class are available in the `data` JS object;
	 * export custom variables by overriding WP_Customize_Control::to_json().
	 *
	 * @see WP_Customize_Control::print_template()
	 *
	 * @since 4.1.0
	 */
	protected function content_template() {}

}

/**
 * WP_Customize_Color_Control class.
 */
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );

/**
 * WP_Customize_Media_Control class.
 */
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );

/**
 * WP_Customize_Upload_Control class.
 */
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );

/**
 * WP_Customize_Image_Control class.
 */
require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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