Add the user's first and last name to the member area

Hello,

My request follows the required addition of the first and last name in the registration form (Add first and last name fields to the user registration form - Make first and last name fields required for users), as well as the modification of the icon (Modify the "Active" icon in the user area).

Is it possible to add the user’s first and last name above the icon in the member’s area tab ?

Or, at best, a customizable text in which ‘tokens’ can be added, like the first and last name ? Example tokens : %icon%, %label%, …

See illustration below :

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation. If you are familiar with coding or have a developer, we can provide general guidance.

Hello

Thank you for your reply.

Unfortunately, I don’t have any coding skills.

I’ll see if I can call in an outside service provider.

Hello,
Finally, I would be interested in some general guidelines for the development of my website.

Sorry for the delay.

It’s possible if you customize the membership template using hivepress/v1/templates/membership_view_block filter hook. It filters an array of template blocks so you can insert a new one or change the existing one by overriding one of the membership template parts via a child theme https://www.youtube.com/watch?v=LkojYp-8uwY

Since users can only view their own memberships then you can simply show the name of the current user https://developer.wordpress.org/reference/functions/wp_get_current_user/

Hope this helps.

1 Like

Hello @ihor,

Thank you for your reply. I’ll try to work with that.