W3cubDocs

/WordPress

WP_Customize_Color_Control::enqueue()

Enqueue scripts/styles for the color picker.

Description

Source

File: wp-includes/customize/class-wp-customize-color-control.php

public function enqueue() {
		wp_enqueue_script( 'wp-color-picker' );
		wp_enqueue_style( 'wp-color-picker' );
	}

Changelog

Version Description
3.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_color_control/enqueue