2

Is there a way to add custom user meta fields (like the one in the profile.php, which contains specific user data), but only an admin or an other user with enough capabilities can change them?

Maybe I'm thinking too complicated. How would you tell your site visitors, who from your users is having which position / status without manually updating a static page?

3

I think I get what you are saying, and if not, forgive me:

just add your meta fields / metabox inside:

if( current_user_can( 'administrator' ) ){  // put code here }

*this is assuming you aren't asking how to add a metafield or metabox.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.