Skip to content

Instantly share code, notes, and snippets.

@ValeryToda
ValeryToda / WordPressMenuRemover.php
Created July 8, 2011 21:56
How to remove menu items from WordPress dashboard
<?php
/**
* Just include this code snippet somewhere inside the functions.php file of your theme.
* Originally posted by hungred @ hungred.com/how-to/remove-wordpress-admin-menu-affecting-wordpress-core-system/
* Thanks for that. Give credit where credit is due.
**/
function remove_menus () {
global $menu;