Pods integration

Home Forums Quform WordPress Pods integration

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34280
    marianogi
    Participant

    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!

    #34285
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #34290
    marianogi
    Participant

    Oh, 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! 🙂

    #34293
    marianogi
    Participant

    Hi 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!

    #34296
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy