Ecommerce Shopify WordPress Discussion

Tutor LMS not auto logging in

I have a wordpress website and using Tutor LMS. It has its own registration page. On the page there is a manual registration and a google SSO. when someone uses google SSO it auto logs in the person and when someone enters name, email etc to register. it reloads to the same page. if ( 'REGULAR_USER' == $payload->role ) { if (!is_user_logged_in()) { $user_login = $payload->preferred_username; $user = get_user_by('email', $user_login); $user_id = $user->ID; clean_user_cache( $user_id); wp_clear_auth_cookie(); wp_set_current_user($user_id, $user_login); wp_set_auth_cookie($user_id); do_action('wp_login', $user_login, $user); update_user_caches( $user ); } } This was supposed to work according to someone else, but didnt
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.