Skip to content

Instantly share code, notes, and snippets.

@nayemDevs
Created January 29, 2017 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nayemDevs/086be36e7b51ced25e556e6378a58c02 to your computer and use it in GitHub Desktop.
Save nayemDevs/086be36e7b51ced25e556e6378a58c02 to your computer and use it in GitHub Desktop.
Add MIME type
/*MIME TYPE*/
function wpufe_custom_upload_extensions( $extensions ) {
$extensions['custom'] = array(
'label' => __( 'Custom Extensions', 'wpuf' ),
'ext' => 'eps,ai',
);
return $extensions;
}
add_filter( 'wpuf_allowed_extensions', 'wpufe_custom_upload_extensions' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment