llms_set_user_login_time( string $user_login, WP_User $user )

Set/Update user login time

Parameters Parameters


(string) (Required) Username.


(WP_User) (Required) WP_User object of the logged-in user.

Top ↑

Return Return


Top ↑

Source Source

File: includes/functions/llms.functions.person.php

function llms_set_user_login_time( $user_login, $user ) {
	update_user_meta( $user->ID, 'llms_last_login', llms_current_time( 'mysql' ) );

Top ↑

Changelog Changelog

Version Description
4.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.