implement after-login-route setting
This commit is contained in:
1 parent
f1ecb8a2a8
commit
59b9f35537
3 files changed
+33
-7
No files matched your search
@@ -32,7 +32,10 @@ add_action('init', function () {
|
||||
$user_id = find_or_create_user($identifier_name, $identifier_value, $name);
|
||||
|
||||
login_user($user_id);
|
||||
wp_redirect(home_url('/dashboard'));
|
||||
|
||||
$redirect_path = get_configured_option('after-login-route');
|
||||
wp_redirect(home_url($redirect_path));
|
||||
|
||||
exit();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user