Last active
August 29, 2015 13:58
-
-
Save andrezrv/10038940 to your computer and use it in GitHub Desktop.
Remove warning from Google Analytics for WordPress in network admin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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