function mb_user_logged() { header('Location: ' . osc_user_dashboard_url()); exit;}osc_add_hook('after_login', 'mb_user_logged');
@zoviI would look for hooks, in theme functions.php you can try to put something like this:Code: [Select]function mb_user_logged() { header('Location: ' . osc_user_dashboard_url()); exit;}osc_add_hook('after_login', 'mb_user_logged');
}osc_add_hook('before_html', 'cust_alerts_user_dashboard');// ad by zovi - dashboard after login =========================================function mb_user_logged() { header('Location: ' . osc_user_dashboard_url()); exit;}osc_add_hook('after_login', 'mb_user_logged');?>
// Flash messages if($login_code == 0) { osc_add_flash_error_message(__('This account does not exist.', 'google_connect')); } else if ($login_code == 1) { osc_add_flash_error_message(__('This account has not been activated.', 'google_connect')); } else if ($login_code == 2) { osc_add_flash_error_message(__('This account has been blocked.', 'google_connect')); } else if ($login_code == 3) { osc_add_flash_ok_message(__('You have been successfully logged in.', 'google_connect')); } /* change by zovi - Redirect after login to dashboard ==================== header('Location: ' . filter_var($google_redirect_url, FILTER_SANITIZE_URL)); */ header('Location:' . osc_user_dashboard_url()); } }