{"id":866081,"date":"2008-09-24T16:30:11","date_gmt":"2008-09-24T16:30:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/need-to-remove-link-to-profile-from-post-page\/"},"modified":"2016-08-19T02:23:51","modified_gmt":"2016-08-19T02:23:51","slug":"need-to-remove-link-to-profile-from-post-page","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/need-to-remove-link-to-profile-from-post-page\/","title":{"rendered":"Need to remove link to Profile from Post page"},"content":{"rendered":"<p>On the Posts page (wp-admin\/profile.php), I would like to remove the link to &#8220;Profile&#8221; or remove access to the page completely for users.<\/p>\n<p>Said another way: I want an Admin to register each user. I don&#8217;t want the users to change their profile, username, or password. <\/p>\n<p>FYI: I&#8217;m sure someone is wondering why I wouldn&#8217;t want a user to update their profile. More importantly, I don&#8217;t want them to change their username and password&#8211;actually, any of their profile. <strong>My company wants to provide and anonymous blog where all employees have the same username and password. Admin will change the password periodically.<\/strong>    <\/p>\n<p><em>Below is code that I&#8217;ve tried in profile.php by another person&#8217;s suggestion, but it did not work.<\/em><\/p>\n<pre><code>&lt;?php\nif (&#039;profile.php&#039; == basename($_SERVER[&#039;SCRIPT_NAME&#039;]) &#038;&#038; !current_user_can(&#039;edit_users&#039;) )\n\t\twp_die(__(&#039;You are not allowed to edit.&#039;));\n?&gt;<\/code><\/pre>\n<p><strong>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?<\/strong><\/p>\n","protected":false},"template":"","class_list":["post-866081","topic","type-topic","status-closed","hentry","topic-tag-anonymous","topic-tag-current_user_can","topic-tag-die","topic-tag-edit","topic-tag-password","topic-tag-profile"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/866081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/866081\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=866081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}