Our Order Form plugin offers the option to create multiple forms. You can set permissions on each form and customize the Access Denied text. If you have the Lead Capture plugin, you may customize the login redirection page.
However, if you have multiple Order Forms, the login page will always redirect to the page where wholesale customers are redirected immediately after logging in, set under the Lead Capture plugin. To override this, you may use this snippet. Add it under your child’s theme functions.php or via the WP Code plugin.
add_filter('option_wwof_permissions_noaccess_login_url', function ($url) {
global $wp_query;
// Get the current page ID
$page_id = $wp_query->post->ID;
// Update the page ID (123) and the redirect URL accordingly
if ($page_id == '123') {
return 'https://www.google.com/'; // Change this to the correct URL
}
// Update the page ID (124) and the redirect URL accordingly
if ($page_id == '124') {
return 'https://www.youtube.com/'; // Change this to the correct URL
}
return $url;
});