Problem:
Allow Redirect to Specific Link or Custom Post Type using CRED Toolset form
Solution:
CRED offers redirection hook 'cred_success_redirect' which you can use to redirect to your desired page/post according to your requirement.
For example:
add_filter('cred_success_redirect', 'custom_redirect',10,3); function custom_redirect($url, $post_id, $form_data) { if ($form_data['id']==12) { $url = 'http://www.google.com'; return $url; } }
You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/allow-redirect-to-specific-link-or-custom-post-type/#post-628618
Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_success_redirect
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by aaronM-9 6 years ago.
Assisted by: Minesh.