This code enables you to remove/hide the Biographical Info meta box field for users/authors, conditionally.
To view the box, from your WordPress Dashboard, go to Users > Your Profile and scroll down to About Yourself where you’ll see a meta box field for Biographical Info just above your profile picture.
In this case, the code removes the box for all users except the administrator or can set or modify the the info about each author and disable access for authors to add or edit thier bio.
Here’s the Bio field which is displayed for admins:
And here’s the bio box removed for non admins:
You can simply change the conditional tag to control who can edit the Bio box.
This solution is based on this question:
I’m running a multi author website and I want to prevent authors from editing their bio and links. The bio is set upon creation of the author and it must not be edited by the author after.
Here’s the code snippet for logged in members:
Leave a Reply