PHP Class WP_Customize_Color_Control, wordpress

Inheritance: extends WP_Customize_Control
Exibir arquivo Open project: johnpbloch/wordpress Class Usage Examples

Public Properties

Property Type Description
$mode string Mode.
$statuses array Statuses.
$type string Type.

Public Methods

Method Description
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
content_template ( ) Render a JS template for the content of the color picker control.
enqueue ( ) Enqueue scripts/styles for the color picker.
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

__construct() public method

Constructor.
Since: 3.4.0
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string Control ID.
$args array Optional. Arguments to override class property defaults.

content_template() public method

Render a JS template for the content of the color picker control.
Since: 4.1.0
public content_template ( )

enqueue() public method

Enqueue scripts/styles for the color picker.
Since: 3.4.0
public enqueue ( )

render_content() public method

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

to_json() public method

Refresh the parameters passed to the JavaScript via JSON.
Since: 3.4.0
public to_json ( )

Property Details

$mode public_oe property

Mode.
Since: 4.7.0
public string $mode
return string

$statuses public_oe property

Statuses.
public array $statuses
return array

$type public_oe property

Type.
public string $type
return string