LLMS_Events_Core::on_signon( string $username, WP_User $user )

Record account.signon event via wp_login hook.


Parameters Parameters

$username

(string) (Required) WP_Users's user_login.

$user

(WP_User) (Required) User object.


Top ↑

Return Return

(LLMS_Event)


Top ↑

Source Source

File: includes/class-llms-events-core.php

	public function on_signon( $username, $user ) {

		return llms()->events()->record(
			array(
				'actor_id'     => $user->ID,
				'object_type'  => 'user',
				'object_id'    => $user->ID,
				'event_type'   => 'account',
				'event_action' => 'signon',
			)
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.36.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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