Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using upload_mimes filter to upload files with non standard extensions.
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
You can’t perform that action at this time.