WPDev.one
Core Class

WP_Customize_Panel

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

Customize Panel class.

Methods 12 methods

Method / Return Description
__construct()
void

Constructor.

Parameters: $manager: mixed, $id: mixed, $args: mixed
active()
bool

Check whether panel is active to current Customizer preview.

active_callback()
bool

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

json()
array

Gather the parameters passed to client JavaScript via JSON.

check_capabilities()
bool

Checks required user capabilities and whether the theme has the

get_content()
string

Get the panel's content template for insertion into the Customizer pane.

maybe_render()
void

Check capabilities and render the panel.

render()
void

Render the panel container, and then its contents (via `this->render_content()`) in a subclass.

render_content()
void

Render the panel UI in a subclass.

print_template()
void

Render the panel's JS templates.

render_template()
void

An Underscore (JS) template for rendering this panel's container.

content_template()
void

An Underscore (JS) template for this panel'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.
$priority
mixed
public
No description available.
$capability
mixed
public
No description available.
$theme_supports
mixed
public
No description available.
$title
mixed
public
No description available.
$description
mixed
public
No description available.
$auto_expand_sole_section
mixed
public
No description available.
$sections
mixed
public
No description available.
$type
mixed
public
No description available.
$active_callback
mixed
public
No description available.

Class Information

Since Version
4.0.0
Source File
wp-includes/class-wp-customize-panel.php
Advertisement