I am developing a custom plugin in PHP, so existing plugins are not usable. I want to make sure that I want to display different URLs in the message for some users. For users registered in Wordpress, contact me and are "approved." I want to configure this additional user profile field so that I can use this field in state. Thus, guests and users without this field or without the correct value in this field will receive url1, and other url2.
requirements
- only users with administrator role
- can create / edit additional user profile fields.
- for all other users
I know how I can add an additional user profile field in Wordpress (see links below), but I donβt know how to restrict editing of this field to users in this role and how a user with an administrator role can create / edit this filed for all users . It seems to me that I should add a new code under the Wordpress panel / users / new user and / or panel / users / authors and users.
I did some google searches and found several sites on how to add an extra user profile field.
, - , , , " " .