acf_field_image::initialize
__construct
This function will setup the field type data
Method of the class: acf_field_image{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_field_image = new acf_field_image(); $acf_field_image->initialize();
Changelog
| Since 5.0.0 | Introduced. |
acf_field_image::initialize() acf field image::initialize code ACF 6.0.4
function initialize() {
// vars
$this->name = 'image';
$this->label = __( 'Image', 'acf' );
$this->category = 'content';
$this->defaults = array(
'return_format' => 'array',
'preview_size' => 'medium',
'library' => 'all',
'min_width' => 0,
'min_height' => 0,
'min_size' => 0,
'max_width' => 0,
'max_height' => 0,
'max_size' => 0,
'mime_types' => '',
);
// filters
add_filter( 'get_media_item_args', array( $this, 'get_media_item_args' ) );
}