Created
March 12, 2019 18:10
-
-
Save nullvariable/c82773df08e0cc7522307edc4053c1d4 to your computer and use it in GitHub Desktop.
don't send user count to wp.org stats.
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 | |
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