WP_Customize_Image_Control::render_content()
Render the control’s content.
Source
File: wp-includes/class-wp-customize-control.php
}
/**
* 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.
*
* @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'; Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_image_control/render_content