Hi @officezen,
Thanks for your message.
Yes you can. All available shortcodes for this notification can be found here: https://betternotificationsforwp.com/documentation/notifications/shortcodes/?notification=admin-user
Let me know if this helps.
I used the following on New User Registration:
Firstname: [user_firstname]
Lastname: [user_lastname]
Username: [user_login]
E-mail: [user_email]
Uername and E-Mail returned the correct data on the notification email, but there were no First Name or Last Name even though the user has those entered correctly when they registered.
What could cause this?
Hi @officezen,
How is the user registering? Is it through the default WordPress registration form or through a front-end form supplied by a plugin?
It is handled by MemberPress plugin. When I view the saved user data it looks like the plugin handles the fields as [first_name] and [last_name] instead.
Could that be why they are not parsed properly in the notification? Do I need a pro version to handle this with a custom field?
Hi @officezen,
I think the issue is that MemberPress is saving the data twice – once when creating the user and then again when updating the user with more metadata. I think this is why that information isn’t available when your notification is triggered as it hasn’t been saved yet.
You can test this by creating a user using the default wordpress registration form, or via the admin and it should show all the information in your notification.
Let me know how you get on.
Yes, I created a user via admin and the name fields are parsed correctly.
So, is it not possible to achieve this with MemberPress or is it so with your Pro version?
Hi @officezen,
Unfortuantely not – it would need to be a change made by MemberPress in order to fix this as ultimately, the hook they’re using to save the user data is happening too late and not in keeping with what is built into WordPress. MY advice would be to reach out to them to see if they can help.