acf_field_file::initialize()
__construct
This function will setup the field type data
Метод класса: acf_field_file{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$acf_field_file = new acf_field_file(); $acf_field_file->initialize();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_field_file::initialize() acf field file::initialize ACF 6.0.4
function initialize() { // vars $this->name = 'file'; $this->label = __( 'File', 'acf' ); $this->category = 'content'; $this->defaults = array( 'return_format' => 'array', 'library' => 'all', 'min_size' => 0, 'max_size' => 0, 'mime_types' => '', ); // filters add_filter( 'get_media_item_args', array( $this, 'get_media_item_args' ) ); }