Title: Create a custom post based on form data
Last modified: June 25, 2024

---

# Create a custom post based on form data

 *  Resolved [clementflib](https://wordpress.org/support/users/clementflib/)
 * (@clementflib)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/create-a-custom-post-based-on-form-data/)
 * Hi there, as title says, I’m willing to create a wp post based on form data after
   its submission. The purpose is to automate the post creation, and an admin will
   come once in a while to publish them (all posts will be in pending status after
   creation).
 * I have a working function that do exactly that with hard coded data, but when
   I try with dynamic data it doesn’t work at all, I’m using `forminator_form_after_handle_submit`
   hook but I just saw it’s been removed and I cannot find anything to replace it.
 * If anyone have any suggestion please let me know !

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Saurabh – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support7/)
 * (@wpmudev-support7)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/create-a-custom-post-based-on-form-data/#post-17850792)
 * Hello [@clementflib](https://wordpress.org/support/users/clementflib/)
 * Hope you’re doing well today.
 * The hook `forminator_form_after_handle_submit` is still valid, the one that was
   deprecated was “forminator_custom_form_after_handle_submit” You can refer to 
   the Forminator API docs here: [https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#removed-deprecated-actions](https://wpmudev.com/docs/api-plugin-development/forminator-api-docs/#removed-deprecated-actions)
 * That said, the hook `forminator_form_after_handle_submit` is used for Page Reload
   Submissions only. In case you are using “Ajax Submission” this hook will not 
   work.
 * If you are using Ajax Submission for the form in that case you can try using 
   the hook `forminator_form_after_save_entry` and see if that helps.
 * Hope this helps. In case you have any further queries, please feel free to reach
   out to us. We’ll be glad to help you further.
 * Kind Regards,
    Saurabh
    -  This reply was modified 1 year, 11 months ago by [Saurabh - WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support7/).
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/create-a-custom-post-based-on-form-data/#post-17871079)
 * Hi [@clementflib](https://wordpress.org/support/users/clementflib/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to open a new thread if you have new queries.
 * Kind Regards
   Nithin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Create a custom post based on form data’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [form submission](https://wordpress.org/support/topic-tag/form-submission/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [WordPress](https://wordpress.org/support/topic-tag/wordpress/)

 * 2 replies
 * 3 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/create-a-custom-post-based-on-form-data/#post-17871079)
 * Status: resolved