Does wp_redirect work inside a post-save helper? (public_form)

This topic is: not resolved

This topic contains 5 replies, has 3 voices, and was last updated by  Kamil Grzegorczyk (Owi) 2 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #165251

    scottnath
    Member

    I have the following inside a post-save helper:

    the email sends just fine, but the redirect does not happen. This is on a public form.

    Should this work?
    Is there a better way to do this?

    #165252

    Kamil Grzegorczyk (Owi)
    Participant
    Post count: 14

    maybe try with

    #165253

    scottnath
    Member

    nope, that didn’t work.

    #165254

    hsatterwhite
    Member

    Try removing exit;

    #165255

    Kamil Grzegorczyk (Owi)
    Participant
    Post count: 14

    In my opinion if post-save helper is called by ajax there is no way to redirect whole script without rebuilding ajax function to check whether soem parameter was passed from post-save helper and make a redirect

    #165256

    Kamil Grzegorczyk (Owi)
    Participant
    Post count: 14

    IF its called using AJAX then try something like this:

    go to pods/ui/js/pods.ui.js

    Find

    and change it for

    and in Your post save helper echo particular url like

    still a theory but it should work ;)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting