The dropdown in hivepress user settings for displayname only allows the Wordpress Username and variations of the First and Last name. How can I use the Wordpress nickname as the Displayname?
This is required as my site uses the Wordpress displayname for other features.
I have updated includes\configs\settings.php and includes\components\class-user.php to add the nickname to the options. Is there anyway to override these files in my child theme to prevent losing this customisation if the plugin is updated?
Yes, this is possible, but it requires a custom implementation, since users do not have a separate nickname field on the frontend, so only the username is displayed.
Thanks @andrii, could you point me towards any documentation or an overview of what a ‘custom implementation’ would require to add this field without overriding theme files?
As the nickname field is a built-in Wordpress value for user accounts, is there any chance this could be added to a future version of the plugin?
We’ll consider adding a separate nickname field to the front-end user profile form. At the moment, adding it is possible only via the code customizations. The easiest way is probably adding a custom user attribute in Users/Attributes, and then adding a custom code snippet for the hivepress/v1/models/user/update hook, to check if this attribute has value and if so, save it as a display name for the user.