Return to Snippet

Revision: 42755
at March 10, 2011 05:22 by mindshare

Initial Code
// remove WP Geo Dashboard widget
remove_filter( 'wp_dashboard_widgets', array( $wpgeo_dashboard, 'add_widget' ) );

// remove WP Geo JS/CSS from head if not looking at WP admin
if (!is_admin()) {
	remove_action( 'wp_print_scripts', array( $wpgeo, 'includeGoogleMapsJavaScriptAPI' ) );
	remove_action( 'wp_head', array( $wpgeo, 'wp_head' ) );
	remove_action( 'wp_footer', array( $wpgeo, 'wp_footer' ) );

Initial URL

Initial Description
Here are a couple of snippets for removing the CSS, JS,  and Dashboard widget created by the WP Geo plugin. I love this plugin but often only use it as a simple way to embed geo data on posts and don't actually need it to generate maps.

Initial Title
Remove CSS, JS and/or Dashboard Widget from WP Geo WordPress plugin

Initial Tags
plugin, wordpress

Initial Language