proudcity / wp-proudcity

The ProudCity WordPress platform
https://proudcity.com
Other
21 stars 9 forks source link

Enter display name in account creation #1994

Open kevindherman opened 2 years ago

kevindherman commented 2 years ago

Enter display name in account creation on my.proudcity.com.

curtismchale commented 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.

curtismchale commented 2 years ago

Need some more information on development for this as requested in: https://github.com/proudcity/wp-proudcity/issues/2033

curtismchale commented 2 years ago

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.

CleanShot 2022-06-01 at 14 12 59@2x

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.

curtismchale commented 2 years ago

Blocked by: https://github.com/proudcity/wp-proudcity/issues/2033

lukefretwell commented 1 year ago

It would be great to have a default that pulls the site name if display name is empty.