Property | Type | Description | |
---|---|---|---|
$field_class | string | Override field_class. | |
$has_registered_statics | boolean | Static variable so we only load static assets once. |
Method | Description | |
---|---|---|
__construct ( string $label = '', array $options = [] ) | Build the colorpicker object and enqueue assets. | |
form_element ( mixed $value = '' ) : string | Form element. | |
sanitize_hex_color ( string $color ) : string | Sanitizes a hex color. |
public __construct ( string $label = '', array $options = [] ) | ||
$label | string | |
$options | array |
public form_element ( mixed $value = '' ) : string | ||
$value | mixed | |
return | string | HTML |
public sanitize_hex_color ( string $color ) : string | ||
$color | string | |
return | string |
public static bool $has_registered_statics | ||
return | boolean |