Skip Navigation

[Resolved] Which hook to use to create new user from CRED form?

This support ticket is created 6 years, 1 month 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.

Author
Posts
#1111817

Tell us what you are trying to do?
I have a 5-year old membership site that I created with the original Types/Views and wrote a bunch of my own functions to make it work. Now, I am changing the structure slightly and would like to know what is the best hook to use for creating a new user (e.g., wp_insert_user() ) when the new-member-application CRED form is submitted.

Is there any documentation that you are following?
Only from WordPress.org.

Is there a similar example that we can see?
Not that I know of.

What is the link to your site?
hidden link

#1112047

Toolset Forms (former CRED) now lets you create users with forms, there is no need for cod anymore.
If you want to hook into those processes, you can do that with the same API as you use for Post Forms:
https://toolset.com/documentation/programmer-reference/cred-api/

Generally $post_id will refer to either post or user, depending on the type of form you apply the code to.

Documentation on user forms can be found here:
https://toolset.com/documentation/user-guides/front-end-forms/

#1112467

My issue is resolved now. Thank you, Beda!
Although I cannot switch to a User CRED form at this time, your provided links sent me in the right direction.

Thanks again!

Jeff Safire