Skip to content

Instantly share code, notes, and snippets.

@kovshenin
Created November 4, 2013 09:24
Show Gist options
  • Save kovshenin/7300131 to your computer and use it in GitHub Desktop.
Save kovshenin/7300131 to your computer and use it in GitHub Desktop.
Allow SWF file uploads in WordPress 3.7
<?php
/**
* Plugin Name: Allow SWF uploads
* Description: This is insecure.
*/
add_filter( 'upload_mimes', 'my_upload_mimes' );
function my_upload_mimes( $mimes ) {
$mimes['swf'] = 'application/x-shockwave-flash';
return $mimes;
}
@brunoscunha
Copy link

You mean to add a new plugin.php file or add these lines in the plugins.php file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment