Created
September 2, 2016 02:23
-
-
Save emarket-design/c38317ca9568586ebd26862dfb8b26a7 to your computer and use it in GitHub Desktop.
Using upload_mimes filter to upload files with non standard extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('upload_mimes', 'my_upload_types'); | |
function my_upload_types($existing_mimes=array()){ | |
$existing_mimes['wpas'] = 'wpas'; | |
return $existing_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment