Upload SWF file in wordpress

Here is the code to Upload swf file in wordpress.

  
function swf_upload($mimes) {
if (function_exists('current_user_can')){
$unfiltered = $user ? user_can($user, 'unfiltered_html') : current_user_can('unfiltered_html');
}
if (!empty($unfiltered)) {
$mimes['swf'] = 'application/x-shockwave-flash';
} return $mimes;
}

add_filter('upload_mimes', 'swf_upload');

We can use Kimili Flash plugin to embed the flash file.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: