3
votes
Can I Get User ID at Login?
As stated in the documentation,
The $current_user global may not be available at the time this filter is run. So you should use the $user global or the $user parameter passed to this filter.
...
1
vote
How to make a user be able to register if such a login already exists?
First for the usernames, you already have the answer:
you can’t make the usernames the same, while you can make the username hidden for the user during registration, and set automatically, for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
login × 1524redirect × 161
wp-login-form × 148
users × 116
user-registration × 109
wp-admin × 108
plugins × 98
php × 90
password × 81
customization × 70
security × 66
authentication × 60
functions × 58
multisite × 57
admin × 57
cookies × 56
logout × 45
errors × 43
hooks × 41
session × 40
plugin-development × 39
user-roles × 33
forms × 33
wp-redirect × 32
filters × 30