Created
March 22, 2018 22:17
-
-
Save elpuas/ee741ec7c6ea6f664b6e6acdf759e7ff 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
// Hide Admin Items | |
add_action('admin_head', 'mdo_adminizer'); | |
function mdo_adminizer(){ | |
global $current_user; | |
get_currentuserinfo(); | |
if ( $current_user->user_email !== "[email protected]" ) { | |
echo '<style> | |
#toplevel_page_azev-settings, #toplevel_page_ucare_support, | |
#toplevel_page_vc-general, #menu-plugins, #toplevel_page_azqf_options, | |
#toplevel_page_azqf_options, #toplevel_page_azsl-settings, | |
#toplevel_page_azl_options { | |
display: none; | |
} | |
</style>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment