implement after-login-route setting

This commit is contained in:
2025-07-17 18:20:47 +03:30
parent f1ecb8a2a8
commit 59b9f35537
3 changed files with 33 additions and 7 deletions
+4 -1
View File
@@ -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();
});