How to redirect to dynamically created URL
-
Hi,
I’ve searched the web, Caldera docs, GitHub but didn’t find any relevant information.I need to redirect processing to an URL which I created in processor/action (using plugin Caldera Forms Run Action and callback function) before. It’s a payment gateway redirection.
I don’t know where to save the new URL or how to pass it to the redirect hook function. The redirect function only has two arguments – $url and $form, but the $form does not contain any data, it’s an empty form structure. There’s no ID or something relevant and specific.
add_filter( 'caldera_forms_redirect_url', 'nfp_caldera_redirect', 5, 2 ); function nfp_caldera_redirect( $url, $form) { ..}
I was looking for information about how to access and modify Caldera Forms variables via PHP, which seemed to be a nice solution; but with no success. I could use a transient but need some kind of specific id in redirect routine… So I’m kind a lost.
Thanks for some help.
vlasta
- The topic ‘How to redirect to dynamically created URL’ is closed to new replies.