Created
March 16, 2018 22:30
-
-
Save Zodiac1978/4671660112482f3c303bbef0f3ddeb2e to your computer and use it in GitHub Desktop.
Allow editors to view the dashboard widget from Statify
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 statify_allow_editors_view_dashboard() { | |
return current_user_can('edit_others_pages'); | |
} | |
add_filter( | |
'statify__user_can_see_stats', | |
'statify_allow_editors_view_dashboard' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment