On the Posts page (wp-admin/profile.php), I would like to remove the link to "Profile" or remove access to the page completely for users.
Said another way: I want an Admin to register each user. I don't want the users to change their profile, username, or password.
FYI: I'm sure someone is wondering why I wouldn't want a user to update their profile. More importantly, I don't want them to change their username and password--actually, any of their profile. My company wants to provide and anonymous blog where all employees have the same username and password. Admin will change the password periodically.
Below is code that I've tried in profile.php by another person's suggestion, but it did not work.
<?php if ('profile.php' == basename($_SERVER['SCRIPT_NAME']) && !current_user_can('edit_users') ) wp_die(__('You are not allowed to edit.')); ?>
Is there a ready-made plugin or existing feature that will do this? Or, could someone tell me what code to insert in which PHP file?