Created
May 4, 2018 04:35
-
-
Save generatepress/e125229c3884b769c25b5546d8dd735e to your computer and use it in GitHub Desktop.
Remove the GP Dashboard for non super admins
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
add_filter( 'generate_dashboard_page_capability', 'tu_super_admin_dashboard' ); | |
function tu_super_admin_dashboard() { | |
return 'manage_sites'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment