Created
June 23, 2015 11:54
-
-
Save woogist/0b9ac5e2a9d19e35a5d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function jeherve_delete_jetpack_menu() { | |
if ( ! current_user_can( 'manage_options' ) ) { | |
remove_menu_page( 'jetpack' ); | |
} | |
} | |
add_action ( 'admin_menu', 'jeherve_delete_jetpack_menu', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment