Created
January 23, 2015 14:01
-
-
Save jchristopher/579f39899b67915906a1 to your computer and use it in GitHub Desktop.
Modify the capability required to view the SearchWP Dashboard Widget
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_dashboard_widget_cap( $capability ) { | |
return 'edit_posts'; // Editors and up should be able to see the stats | |
} | |
add_filter( 'searchwp_dashboard_widget_cap', 'my_searchwp_dashboard_widget_cap' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment