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()


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.