WordPress has list of allowed Media Library upload extensions in wp-includes/functions.php but is there any way to return them to theme’s files as an array?
Leave a Reply
You must be logged in to post a comment.
WordPress has list of allowed Media Library upload extensions in wp-includes/functions.php but is there any way to return them to theme’s files as an array?
You must be logged in to post a comment.
get_allowed_mime_types() function returns an array of mime types keyed by the file extension regex corresponding to those types.
I believe you’re looking for the
wp_get_mime_types()
function