Last active
July 13, 2021 06:28
-
-
Save plugin-republic/632debfca8dba673dd9c717b93e9c45e to your computer and use it in GitHub Desktop.
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
<?php | |
function my_prefix_upload_mimes( $mimes ) { | |
// Add PhotoShop PSD files to list of permitted WordPress mime types | |
$mimes['psd'] = "application/x-photoshop"; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'my_prefix_upload_mimes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment