Ejemplo n.º 1
0
<?php

/*
Plugin Name: Flowplayer for Wordpress
Plugin URI: http://saiweb.co.uk/wordpress-flowplayer
Description: Flowplayer Wordpress Extension
Version: 2.0.9.92
Author: David Busby
Author URI: http://saiweb.co.uk
*/
//class include
require_once realpath(dirname(__FILE__)) . '/classes/flowplayer.class.php';
//setup defines
flowplayer::setup();
/**
 * WP Hooks
 */
//plugin setting menu
add_action('admin_menu', 'flowplayer_admin');
//save menu callback
// add_action('save_post', 'fp_save');
add_action('wp_print_scripts', 'flowplayer_scripts');
add_action('wp_print_styles', 'flowplayer_styles');
//javascript head
add_action('wp_head', 'flowplayer_head', 20);
//content callback
add_filter('the_content', 'flowplayer_content');
//activate plugin callback
register_activation_hook(__FILE__, 'flowplayer_activate');
//deactivate plugin callback
register_deactivation_hook(__FILE__, 'flowplayer_deactivate');