• Resolved Jimmy Gawain

    (@jimmy-gawain)


    I am having trouble getting the conversion to a GET instead of a POST working.

    I have added the following to my theme functions.php:

    add_filter('Forms3rdPartyIntegration_service_filter_args', array(&$this,'my_3rdparty_get_override'), 10, 3);
    
    function my_3rdparty_get_override($post_args, $service, $form) {
        $post_args['response_bypass'] = wp_remote_get($service['url'], $post_args);
        return $post_args;
    }

    What else do I need to do to get the submit to turn into a GET?

    https://wordpress.org/plugins/forms-3rdparty-integration/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jimmy Gawain

    (@jimmy-gawain)

    I just used requestb.in to verify what was actually being sent and discovered that even though the debug mail says it was going out as a POST, it was actually being sent as a GET.

    In other words, the GET hook above was working the whole time!

    TL;DR: The “Post” in the debug mail does not equate to a “POST” or “GET”.

    Plugin Author zaus

    (@zaus)

    Ha, sorry that the section title was confusing you.

    Did you send it to the included debug endpoint? It would have showed you the $_GET params, which might have helped you catch this sooner.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with GET hook’ is closed to new replies.