Upload
<?php
$tea_content = array(
array(
'type' => 'upload',
'title' => 'Upload',
'id' => 'simple_upload',
'description' => 'Simple description to upload panel',
),
);
Retrieve data
Using the _get_option('simple_upload')
method, you'll get (with a json_encode()
display):
{
"url": "http:\/\/your_complete_url\/wp-content\/uploads\/img\/teato-tiny.svg",
"id": "14",
"name": "teato-tiny"
}
Updated less than a minute ago