• Resolved nickknowledge

    (@nickknowledge)


    This plugin works well for me, and it was easy to get it to embed a Flash movie in a post.
    I had a requirement to embed it in my own plugin, on an admin page (i.e. within /wp-admin). Embedding using XHTML worked, but the SWFObject approaches didn’t (whether local or on Google).

    I followed the instructions on the Codex and put the following code in my own plugin:

    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    if (is_plugin_active('wp-swfobject/wp-swfobject.php')) {
    	add_action('admin_head', 'wpswfAddheader');
    }

    Hope this helps.
    Nick.

    https://www.ads-software.com/extend/plugins/wp-swfobject/

  • The topic ‘How to add WP-SWFObject to admin pages’ is closed to new replies.