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
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/
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