-
-
Save robi09/6a414d04fdaaaa42bbcded8c132a732a to your computer and use it in GitHub Desktop.
don't send user count to wp.org stats.
This file contains 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 | |
add_filter( 'core_version_check_query_args', 'hide_stats', 99 ); | |
function hide_stats( $query ) { | |
$query['blogs'] = 1; | |
$query['users'] = 1; | |
return $query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment