learndash_validate_extensions( array|string $exts = array() )
Utility function to parse and validate whether the assignment upload extensions are allowed.
Description Description
This utility function will trim, convert to lowercase and removes .
from the extension.
Parameters Parameters
- $exts
-
(Optional) An array of file extensions.
Default value: array()
Return Return
(array) $exts An array of validated file extensions.
Source Source
File: includes/ld-misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |