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