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


Top ↑

Return Return

(void)


Top ↑

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' ) );
}


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: