Skip Navigation

[Resolved] Cred user notification on user meta does not work

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to add user custom field to Cred User email notification

Solution:
You can use Types shortcode or [wpv-user] shortcode to display the user custom field value using CRED user email notification.

You can find proposed solution with the following reply:
=> https://toolset.com/forums/topic/cred-user-notification-on-user-meta-does-not-work/#post-600243

Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Pat 6 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#600169

Pat

Hello,

I have created a Cred user form and wants to place a notification in order to display inthe mail , all meta that have been entered by the new user.
For this, I have created some user fields and have placed (as discribed in your documentation), the following code inside the mail form :

Société : %%USER_USERNAME%%
Siret : [types usermeta='siret' user_id="%%USER_USERID%%" user_is_author="true"][/types]

When I receive the mail, then username is OK, but nothing is display in the "siret" filed.

Any idea?
Regards
Pat

#600243

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

What if you try to use following code:

Siret : [types usermeta='siret' user_id="%%USER_USERID%%"][/types]

OR

Siret : [wpv-user field="wpcf-siret" id="%%USER_USERID%%"] 

I've checked both of the above code, obviously with different custom user field I'm having on my install and I can see the content on email.

#600272

Pat

Hi Minesh,

That's perfect. I have read the documentation at this link https://toolset.com/documentation/user-guides/cred-user-forms-email-notifications/ and fonded that I need to use something like :

[types usermeta="date-of-birth" style="text" format="F j, Y" user_id="%%USER_USERID%%" user_is_author="true"][/types]

I would recommend to check this documentation page in order to provide with the right code.
Thanks
Pat