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.
Return Return
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', ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.36.0 | Introduced. |