Open kevindherman opened 2 years ago
Once the user enters their display name it should also populate to WP as the display_name
setting for a user so that we get the proper author information in metadata when content is shared and gets author properties populated.
Need some more information on development for this as requested in: https://github.com/proudcity/wp-proudcity/issues/2033
It appears that we just need to add another field to the form when we create a user. Though it's possible that this was tried and didn't work for reasons I don't know. We see that there was a field for username
at one point but it was commented out.
Here we'd need to add --display_name=$thing
based on a new form field that we allowed to be set on the Create User screen in my.proudcity.com
. We'd also need to add that form field to the edit user screen on my.proudcity.com
. See the screenshot below.
Fields should go here for the invite user and here for the edit user.
I see code to update the user role based on the Dashboard API call but I don't see how that could be added to so that we could change display name. We'd need some new function around here to call wp user update $id --display_name=$name
on the site to update the display name of the user in question.
It would be great to have a default that pulls the site name if display name is empty.
Enter display name in account creation on my.proudcity.com.