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.

Comments

Popular posts from this blog

Send email from xampp localhost

Convert long url to short url using tinyurl api

Avoid merging old cart items in customer session magento