Redirect based on user role.
-
Hi, can you please pass the “$user_signon” variable to “wcalr_login_redirect” filter, so we can redirect user based on who has logged in, like different roles, or different capabilities.
its on the line number 229, in woocommerce-ajax-login-register.php file.
just change this line:
'redirect' => apply_filters( "wcalr_login_redirect", false)to this:
'redirect' => apply_filters( "wcalr_login_redirect", false, $user_signon)Hope that helps. thank you for this amazing plugin.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Redirect based on user role.’ is closed to new replies.