W3cubDocs

/WordPress

WP_Customize_Control::content_template()

An Underscore (JS) template for this control’s content (but not its container).

Description

Class variables for this control class are available in the data JS object; export custom variables by overriding WP_Customize_Control::to_json().

See also

Source

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

protected function content_template() {}

Changelog

Version Description
4.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/content_template