WordPress.org

Ready to get started?Download WordPress

Forums

WP-SWFObject
[resolved] How to add WP-SWFObject to admin pages (1 post)

  1. nickknowledge
    Member
    Posted 2 years ago #

    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.

    http://wordpress.org/extend/plugins/wp-swfobject/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic