wc_user_logged_in()
Update logic triggered on login.
No Hooks.
Return
null
. Nothing (null).
Usage
wc_user_logged_in( $user_login, $user );
- $user_login(string) (required)
- User login.
- $user(object) (required)
- User.
Changelog
Since 3.4.0 | Introduced. |
wc_user_logged_in() wc user logged in code WC 9.4.2
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 ); }