I'm trying to hide certain admin menu items in Wordpress from all users except one (myself).
I can find various tutorials but they mostly hide on user roles rather than users.
I have found this from the Wordpress codex:
<?php
function custom_menu_page_removing() {
remove_menu_page( $menu_slug );
}
add_action( 'admin_menu', 'custom_menu_page_removing' );
?>
But I don't fully understand it, plus I think I'll need to add some more PHP to it to essentially make the code say:
If user isn't shaun@seedcreativity.co.uk (Me!)
Then remove these menu items:
ItemID 1, ItemID 2, ItemID 3, etc...
Can anyone help?