Home › Forums › Quform WordPress › Pods integration
- This topic has 4 replies, 2 voices, and was last updated 2 years, 6 months ago by Ally.
- AuthorPosts
- May 26, 2022 at 2:39 am #34280marianogiParticipant
Hi!, I’d like to know if Quform has an easy integration with Pods plugins as many other form plugins: gravity forms, bit form, etc., or if you can provide any lead on how to do it.
Thank you!May 26, 2022 at 6:58 am #34285AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 26, 2022 at 10:49 am #34290marianogiParticipantOh, thank you very much!, that’s the kind of help I needed!!
I always get suprised by your plugin, its complete documentation and your great support. My favourite plugin ever! 🙂
May 26, 2022 at 11:36 pm #34293marianogiParticipantHi again, here I post what I needed to integrate with Pods plugin. Maybe I can help more people with the same need:
add_filter('quform_post_process_1', function (array $result, Quform_Form $form) { $pod_field1 = $form->getValue('quform_1_2'); $pod_field2 = $form->getValue('quform_1_3'); $pod_field3 = $form->getValue('quform_1_4'); $fields = array( 'post_title' => 'item name:' . ' - ' . $pod_field1, 'pod_field1' => $pod_field1, 'pod_field2' => $pod_field2, 'pod_field3' => $pod_field3 ); $new_id = pods( 'pod_name_here' )->add( pods_sanitize ($fields) ); return $new_id; }, 10, 2);
Very easy!
May 27, 2022 at 9:24 am #34296AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.