Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modify the capability required to view SearchWP statistics
<?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
You can’t perform that action at this time.