learndash_validate_extensions( array|string $exts = array() )

Utility function to parse and validate whether the assignment upload extensions are allowed.

Description #

This utility function will trim, convert to lowercase and removes . from the extension.

Parameters #


(array|string) (Optional) An array of file extensions.

Default value: array()

Return #

(array) $exts An array of validated file extensions.

Source #

File: includes/ld-misc-functions.php

Changelog #

Version Description
2.5.0 Introduced.