WP_Customize_Control::content_template() WordPress Method

The WP_Customize_Control::content_template() method allows you to add custom content to a WordPress Customizer control. This is useful if you want to add extra information or options to your control.

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().

Top ↑

See also


Top ↑

Source

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

	protected function content_template() {}


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.