I have successfully removed it from view before but a standard user lost access to that page, basically saying they did not have the permissions...
I want all users to have access to the hidden page.. I just don't want them to be able to see it in the admin menu on the left.
Is this possible?
You can try with the remove_menu_page function :
add_action( 'admin_menu', 'remove_menus' );
function remove_menus(){
remove_menu_page( 'profile.php' );
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.