Skip to content

Instantly share code, notes, and snippets.

@KrissieV
Created February 7, 2017 07:57
Show Gist options
  • Save KrissieV/620ace49d2c619d059e8177073f64953 to your computer and use it in GitHub Desktop.
Save KrissieV/620ace49d2c619d059e8177073f64953 to your computer and use it in GitHub Desktop.
<?php
function remove_admin_menu_pages() {
remove_menu_page ('edit-comments.php');
remove_submenu_page( 'themes.php','widgets.php' );
}
add_action( 'admin_menu', 'remove_admin_menu_pages' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment