Browse: Home / Functions /

learndash_return_bytes_from_shorthand

learndash_return_bytes_from_shorthand( int|string $val )

Converts the file size shorthand to bytes.


Description #


Parameters #

$val

(int|string) (Optional) Shorthand notation for file size like 1024M. Default 0.


Return #

(int) Returns the bytes after converting from shorthand.


Source #

File: includes/ld-assignment-uploads.php


Changelog #

Changelog
Version Description
4.24.0 Better support for 32bit systems.
2.5.0 Introduced.