Created
September 10, 2015 09:09
-
-
Save mikejolley/28510c45b4759ebe34a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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( 'job_application_form_fields', 'alter_allowed_mime_types' ); | |
function alter_allowed_mime_types( $fields ) { | |
$fields['application_attachment']['allowed_mime_types'] = array( | |
'doc' => 'application/msword', | |
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', | |
'pdf' => 'application/pdf', | |
); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment