Automatically populate/update “description” meta_key field
-
When a new user is added to my WordPress site running UM, a bunch of usermeta rows are created for that new user, including a row for meta_key “wp_capabilities”, which contains the user role. Another row is also created, meta_key “description”, which is always blank. This is a screenshot of the database:
What I’m trying to do is add some code that will automatically populate the meta_key “description” row with a meta_value corresponding to the user’s role – initially “registered”, but updating if the role gets updated in UM.
Any help most appreciated. I’m not a coding expert, but I can usually follow along…
Thanks.
- The topic ‘Automatically populate/update “description” meta_key field’ is closed to new replies.