Skip Navigation

[Resolved] User form in other form

This support ticket is created 4 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.

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

Last updated by Minesh 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1523533

Hello,

Is it possible to have a user form in a publication form to save time.

If you can register at the same time as you add a custom post type, that's perfect.

Thank you.

#1524417

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Do you mean that you want to create a new post for specific post type as soon as the user registers successfully? If this is true: - Are you using the Toolset User form to create/register new users? If yes:
- You can use the Toolset Form's API hook "cred_save_data" to create a new post as soon as a new user created successfully.

You can use CRED hook: cred_save_data
=> https://toolset.com/documentation/user-guides/cred-api/#csd

Now, using the above hook you can create child entry using the WordPress function - wp_insert_post:
=> https://developer.wordpress.org/reference/functions/wp_insert_post/

Please check the following related ticket that may help you;
=> https://toolset.com/forums/topic/automatic-post-creation-on-registration/#post-555243

Please feel free to contact me if you need further assistance with your issue.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.