Files data (get file info) (tag)

file_is_displayable_image()

Checks if the file is an image (if it is suitable for display on the page). Conditional tag.

get_file_data()

Gets the file data specified in the PHP comments of the file.

get_plugin_data()

Gets plugin data (specified in the headers) from the given path to the main plugin file.

size_format()

Converts bytes to a human-readable format: 500 B, 63 KB, 9 MB, 2 GB, 1 TB.

wp_convert_hr_to_bytes()

Converts a shortened byte value to an integer byte value. For example, the string 1Mb will be converted to the number 1048576.

wp_read_image_metadata()

Gathers an array of useful image metadata from the exif and iptc file metadata.