Свойство | Тип | Описание | |
---|---|---|---|
$field_class | string | Override field_class. | |
$has_registered_statics | boolean | Static variable so we only load static assets once. |
Метод | Описание | |
---|---|---|
__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 | |
Результат | string | HTML |
public sanitize_hex_color ( string $color ) : string | ||
$color | string | |
Результат | string |
public static bool $has_registered_statics | ||
Результат | boolean |