learndash_return_bytes_from_shorthand( int|string $val )
Converts the file size shorthand to bytes.
Parameters #
- $val
-
(int|string)
(Optional)
Shorthand notation for file size like 1024M. Default 0.
Return #
(int) Returns the bytes after converting from shorthand.