Skip to content

Instantly share code, notes, and snippets.

@andrezrv
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrezrv/10038940 to your computer and use it in GitHub Desktop.
Save andrezrv/10038940 to your computer and use it in GitHub Desktop.
Remove warning from Google Analytics for WordPress in network admin.
<?php
/**
* Remove Google Analytics warning from network admin.
*/
function remove_analytics_warning_from_network_admin() {
if ( is_network_admin() ) {
global $ga_admin;
remove_filter( 'admin_footer', array( $ga_admin, 'warning' ) );
}
}
add_action( 'init', 'remove_analytics_warning_from_network_admin' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment