Created
January 23, 2015 14:14
-
-
Save jchristopher/193b6dfe17d16bd31c0e to your computer and use it in GitHub Desktop.
Modify the capability required to view SearchWP statistics
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 | |
function my_searchwp_statistics_cap( $capability ) { | |
return 'manage_options'; // only Administrators | |
} | |
add_filter( 'searchwp_statistics_cap', 'my_searchwp_statistics_cap' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment