Свойство | Тип | Описание | |
---|---|---|---|
$button_label | |||
$field_type | empty for all types. available types: audio, video, image | ||
$value_type | alt, author, caption, dateFormatted, description, editLink, filename, height, icon, id, link, menuOrder, mime, name, status, subtype, title, type, uploadedTo, url, width | ||
$window_button_label | |||
$window_label |
Метод | Описание | |
---|---|---|
admin_init ( ) | Admin initialization actions | |
set_type ( string $type ) | Change the type of the field | |
set_value_type ( string $value_type ) | Change the value type of the field. | |
template ( ) | The main Underscore template of this field | |
template_description ( ) | Underscore template of the file description section. | |
to_json ( boolean $load ) : array | Returns an array that holds the field data, suitable for JSON representation. |
public set_value_type ( string $value_type ) | ||
$value_type | string |
public template_description ( ) |
public $field_type |
public $value_type |