Opened 2 years ago
Closed 20 months ago
#17085 closed enhancement (fixed)
Pass $user to 'wp_login' action
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Users | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Currently, the 'wp_login' hook only passes the 'user_login' credential, forcing callbacks to unnecessarily call get_userdata_by_login() again.
wp_get_current_user() won't work, because the cookie will only be available on the next request.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.

Related: #15473