Created
February 13, 2019 15:14
-
-
Save sabotawsh/eb9e44039e4b5df61a4459edc5d6e97e to your computer and use it in GitHub Desktop.
WordPress – Removing Unused Admin Features from Dashboard
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
// REMOVES POST AND COMMENT SECTION FROM WP DASHBOARD | |
function post_remove () { | |
remove_menu_page('edit.php'); | |
remove_menu_page( 'edit-comments.php' ); | |
} | |
add_action('admin_menu', 'post_remove'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment