Class CMB2_Type_File_Base
CMB File base field type
- CMB2_Type_Base
- CMB2_Type_Counter_Base
- CMB2_Type_Text
- CMB2_Type_File_Base
Direct known subclasses
Package: CMB2
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 2.2.2
Link: https://cmb2.io
Located at includes/types/CMB2_Type_File_Base.php
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 2.2.2
Link: https://cmb2.io
Located at includes/types/CMB2_Type_File_Base.php
Methods summary
public
boolean
|
|
public
string
|
|
public
string
|
|
public static
|
#
output_js_underscore_templates( )
Outputs the file/file_list underscore Javascript templates in the footer. |
public static
array
|
#
get_image_size_data( array|string $img_size = '', string $fallback = 'thumbnail' )
Utility method to return an array of meta data for a registered image size |
public static
array
|
#
prepare_image_sizes_for_js( array $response, integer|object $attachment, array $meta )
Filters attachment data prepared for JavaScript. |
Methods inherited from CMB2_Type_Text
Methods inherited from CMB2_Type_Counter_Base
char_counter_markup()
,
enforce_max()
,
maybe_update_attributes_for_char_counter()
Methods inherited from CMB2_Type_Base
__call()
,
__get()
,
get_rendered()
,
parse_args()
,
parse_args_from_overrides()
,
rendered()