Sauter la navigation

[Résolu] User form in other form

This support ticket is created Il y a 4 années et 11 mois. 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.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 4 années et 11 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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.