Created
April 21, 2017 06:58
-
-
Save danielstrelec/59712327172980116aa77354cfe9d135 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
| // skrytí některých částí administrace | |
| function remove_menus(){ | |
| remove_menu_page('index.php'); // nástěnka | |
| remove_menu_page('edit.php'); // posty | |
| remove_menu_page('edit-comments.php'); // komentáře | |
| } | |
| add_action('admin_menu', 'remove_menus'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment