Home › Forums › ACF PRO › Redirect Form to variable External URL › Reply To: Redirect Form to variable External URL
Make sure that the post type is correct, I was going by your wp_form() code
'new_post' => array(
'post_type' => 'post_type_listings',
'post_status' => 'pending',
),
I don’t see any reason why the redirect is not working
Honestly, the if statement shouldn’t even be needed because none of the redirects should do anything unless this is true
if ( have_rows( 'listing_payment_options', $post_id ) ) :
and this should only be true on the correct post type the only thing you should really need to check is is_admin()
This should not help because you have the action in the theme, but you could try increasing the priority to > 10
add_filter('acf/save_post', 'stripe_payment_redirect', 20);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.