Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created July 17, 2018 18:18
Show Gist options
  • Save jchristopher/207b7e6b27dcfcae1ee3c4be251f3a1e to your computer and use it in GitHub Desktop.
Save jchristopher/207b7e6b27dcfcae1ee3c4be251f3a1e to your computer and use it in GitHub Desktop.
<?php
// Limit Metrics data to those who can manage_options
add_filter( 'searchwp_metrics_capability', function( $capability ) {
return 'manage_options';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment