WordPress at a glance
function is not described

wc_user_logged_in() WC 3.4.0

Update logic triggered on login.

No Hooks.

Return

null. Nothing.

Usage

wc_user_logged_in( $user_login, $user );
$user_login(string) (required)
User login.
$user(object) (required)
User.

Changelog

Since 3.4.0 Introduced.

Code of wc_user_logged_in() WC 5.3.0

<?php
function wc_user_logged_in( $user_login, $user ) {
	wc_update_user_last_active( $user->ID );
	update_user_meta( $user->ID, '_woocommerce_load_saved_cart_after_login', 1 );
}