WPDev.one
Core Class

WP_Customize_Control

class WP_Customize_Control // Constructor: function Object() { [native code] }

Customize Control class.

Methods 17 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $manager: mixed, $id: mixed, $args: mixed
enqueue()
void

Enqueues control related scripts/styles.

active()
bool

Checks whether control is active to current Customizer preview.

active_callback()
true

Default callback used when invoking WP_Customize_Control::active().

value()
mixed

Fetches a setting's value.

Parameters: $setting_key: mixed
to_json()
void

Refreshes the parameters passed to the JavaScript via JSON.

json()
array

Gets the data to export to the client via JSON.

check_capabilities()
bool

Checks if the user can use this control.

get_content()
string

Gets the control's content for insertion into the Customizer pane.

maybe_render()
void

Checks capabilities and render the control.

render()
void

Renders the control wrapper and calls $this->render_content() for the internals.

get_link()
string

Gets the data link attribute for a setting.

Parameters: $setting_key: mixed
link()
void

Renders the data link attribute for the control's input element.

Parameters: $setting_key: mixed
input_attrs()
void

Renders the custom attributes for the control's input element.

render_content()
void

Renders the control's content.

print_template()
void

Renders the control's JS template.

content_template()
void

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

Properties

Property / Type Description
$instance_count
mixed
public
No description available.
$instance_number
mixed
public
No description available.
$manager
mixed
public
No description available.
$id
mixed
public
No description available.
$settings
mixed
public
No description available.
$setting
mixed
public
No description available.
$capability
mixed
public
No description available.
$priority
mixed
public
No description available.
$section
mixed
public
No description available.
$label
mixed
public
No description available.
$description
mixed
public
No description available.
$choices
mixed
public
No description available.
$input_attrs
mixed
public
No description available.
$allow_addition
mixed
public
No description available.
$json
mixed
public
No description available.
$type
mixed
public
No description available.
$active_callback
mixed
public
No description available.

Class Information

Since Version
3.4.0
Source File
wp-includes/class-wp-customize-control.php
Advertisement