Skip to main content

Color

Select a colour using a circular colour wheel.

Value

Returns string

$color = fx_get_meta('id');

Example

'id' => [
'type' => 'color',
'className' => 'my-class-name',
'buttonText' => 'Pick a colour',
'title' => 'Colour',
],

Props

buttonText

Alternate text for the select color button

type: string

defaultValue: 'Select colour'

className

Metabox class name

type: string

title

Metabox title

type: string