learndash_get_allowed_upload_mime_extensions_for_post( integer $post_id )
Utility function to return a list of allowed upload file extensions.
Description #
This utility function is used to limit the allowed file extensions for Assignments and Essays.
Warning: In the context of Assignments, this function is a candidate for deprecation. Use Has_Assignments::get_supported_assignment_file_mime_types() instead.
Parameters #
- $post_id
-
(integer) (Required) Post ID for Assignment or Essay.
Return #
(array) allowed file extensions with mime.
Source #
Changelog #
| Version | Description |
|---|---|
| 3.1.7 | Introduced. |