Put code into body tags near top, using a plugin

Put that script into a file somewhere in your theme folder. Include it using the following code in your theme’s functions.php file: <?php function wpa_65602_enqueue_scripts() { wp_enqueue_script( ‘facebook’, get_bloginfo( ‘template_url’ ) . ‘/path/to/script.js’ ); } add_action( ‘wp_enqueue_scripts’, ‘wpa_65602_enqueue_scripts’ );

What is the easiest way to implement cascading database upgrade for my plugin?

Ok, to resolve these issues, let’s implement the cascading upgrade process which will handle both use cases. First of all lets implement our plugin activation hook, which will be our entry point: // define current plugin version define( ‘WPSE8170_PLUGIN_VERSION’, ‘2.0.0’ ); // define our database table name define( ‘WPSE8170_DB_TABLE’, $GLOBALS[‘wpdb’]->prefix . ‘wpse8170_test_table’ ); add_action( ‘init’, … Read more

Display All Non-Used Plugins

I think you can use this plugin: http://wordpress.org/extend/plugins/wpmu-plugin-stats/screenshots/ Provides info to site admins as to which plugins are activated sitewide, and which blogs plugins are activated on. This plugin is using get_plugins() http://codex.wordpress.org/Function_Reference/get_plugins and fetches get_option(‘active_plugins’) for each blog to compare. It uses switch_to_blog() on each blog so it might be slower on large multisites, … Read more