Support » Plugin: WP-SWFObject » How to add WP-SWFObject to admin pages

  • Resolved 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.

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