WordPress at Your Fingertips
function is not described

WC_Settings_General::color_picker() public WC 1.0

Output a color picker input box.

{} It's a method of the class: WC_Settings_General{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Settings_General = new WC_Settings_General();
$WC_Settings_General->color_picker( $name, $id, $value, $desc );
$name(mixed) (required)
Name of input.
$id(string) (required)
ID of input.
$value(mixed) (required)
Value of input.
$desc(string)
(default: '') Description for input.
Default: ''

Code of WC_Settings_General::color_picker() WC 5.9.0

public function color_picker( $name, $id, $value, $desc = '' ) {
	echo '<div class="color_box">' . wc_help_tip( $desc ) . '
		<input name="' . esc_attr( $id ) . '" id="' . esc_attr( $id ) . '" type="text" value="' . esc_attr( $value ) . '" class="colorpick" /> <div id="colorPickerDiv_' . esc_attr( $id ) . '" class="colorpickdiv"></div>
	</div>';
}