PHP Class WP_Customize_Color_Control, wordpress

Inheritance: extends WP_Customize_Control
Afficher le fichier Open project: johnpbloch/wordpress Class Usage Examples

Méthodes publiques

Свойство Type Description
$mode string Mode.
$statuses array Statuses.
$type string Type.

Méthodes publiques

Méthode 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 méthode

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 méthode

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

enqueue() public méthode

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

render_content() public méthode

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 méthode

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
Résultat string

$statuses public_oe property

Statuses.
public array $statuses
Résultat array

$type public_oe property

Type.
public string $type
Résultat string