llms_set_person_auth_cookie( $user_id, $remember = false )
Sets user auth cookie by id and records the date/time of the login in the usermeta table
Description Description
Parameters Parameters
- $person_id
-
(int) (Required) ID of the user
Return Return
(void)
Source Source
File: includes/functions/llms.functions.person.php
function llms_set_person_auth_cookie( $user_id, $remember = false ) { wp_set_current_user( $user_id ); wp_set_auth_cookie( $user_id, false ); update_user_meta( $user_id, 'llms_last_login', current_time( 'mysql' ) ); }
Expand full source code Collapse full source code View on GitHub
User Contributed Notes User Contributed Notes
Permalink: