Skip Navigation

[Resolved] How do I get the UserID of new created User with UserFirn

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.

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 1 reply, has 1 voice.

Last updated by ursS-2 1 month, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2817237

Hello Toolset Team,
How and where do I get the user ID of a newly created user created with a Toolset UserForm?
Greetings Urs

#2817303

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

What exactly the operation you want to perform?

Toolset offers hook "cred_save_data":
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

Alternatively you can use the hook "cred_submit_complete":
- https://toolset.com/documentation/programmer-reference/cred-api/#cred_submit_complete

At top of the above page within the blue box we already mentioned the following line:

Please keep in mind that $post_id is the User ID when using Toolset Forms API with Toolset User Forms.

#2817309

Thanks! That is what I was searching for. Especially the note that $postid is the $userid of the newly created user.