Created
April 25, 2012 21:03
-
-
Save soderlind/2493364 to your computer and use it in GitHub Desktop.
An alternative "Hide ACF Menu from Clients"
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_action( 'admin_menu', function() { | |
if (! current_user_can('administrator')) { | |
remove_menu_page('edit.php?post_type=acf'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment