File: wp-includes/user.php
-
functionsanitize_user_field()
Sanitizes user field based on context.
-
functioncount_user_posts()
Gets the number of posts a user has written.
-
functionwp_signon()
Authenticates and logs a user in with ‘remember’ capability.
-
hookget_usernumposts
Filters the number of posts a user has written.
-
hookwp_authenticate
Fires before the user is authenticated.
-
functioncount_many_users_posts()
Gets the number of posts written by a list of users.
-
Filters whether to use a secure sign-on cookie.
-
functionget_current_user_id()
Gets the current user’s ID.
-
hookwp_login
Fires after the user has successfully logged in.
-
functionget_user_option()
Retrieves user option that can be either per Site or per Network.
-
Authenticates a user, confirming the username and password are valid.
-
Filters whether the given user can be authenticated with the provided password.
-
functionwp_authenticate_cookie()
Authenticates the user using the WordPress auth cookie.
-
functionwp_authenticate_spam_check()
For Multisite blogs, checks if the authenticated user has been marked as a spammer, or if the user’s primary blog has been marked as spam.
-
Filters whether the user has been marked as a spammer.
-
functionwp_validate_logged_in_cookie()
Validates the logged-in cookie.
-
functionget_user_count()
Returns the number of active users in your installation.