PHP Class WP_Customize_Theme_Control, wordpress

See also: WP_Customize_Control
Since: 4.2.0
Inheritance: extends WP_Customize_Control
Show file Open project: johnpbloch/wordpress

Public Properties

Property Type Description
$theme WP_Theme Theme object.
$type string Customize control type.

Public Methods

Method Description
content_template ( ) Render a JS template for theme display.
render_content ( ) Don't render the control content from PHP, as it's rendered via JS on load.
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

Method Details

content_template() public method

Render a JS template for theme display.
Since: 4.2.0
public content_template ( )

render_content() public method

Don't render the control content from PHP, as it's rendered via JS on load.
Since: 4.2.0
public render_content ( )

to_json() public method

Refresh the parameters passed to the JavaScript via JSON.
See also: WP_Customize_Control::to_json()
Since: 4.2.0
public to_json ( )

Property Details

$theme public property

Theme object.
Since: 4.2.0
public WP_Theme $theme
return WP_Theme

$type public property

Customize control type.
Since: 4.2.0
public string $type
return string