Color
<?php
$tea_content = array(
array(
'type' => 'color',
'title' => 'What is your favorite Coke?',
'id' => 'my_color_field_id',
'default' => '#000000',
'description' => 'Do not choose the Coke Zero, right? ;)',
),
);
Retrieve data
Using the _get_option('my_color_field_id')
method, you'll get (with a json_encode()
display):
"#000000"
Updated less than a minute ago