acf_field_file::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_file{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_file = new acf_field_file(); $acf_field_file->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_file::initialize() acf field file::initialize code 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' ) );
}