Font
<?php
$tea_content = array(
array(
'type' => 'font',
'title' => 'Choose your style',
'id' => 'my_font_field_id',
'default' => 'my_gorgeous_font',
'description' => 'Tell us how to scribe :D',
'fonts' => true,
'options' => array(
'PT+Sans' => array('PT Sans', 'PT Sans', '400,500'),
),
)
);

Retrieve data
Using the _get_option('my_font_field_id')
method, you'll get (with a json_encode()
display):
"Bree+Serif"
Updated less than a minute ago