wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp-includes/user.php › WordPress File
Funktionen77
› Core User API
Funktion | Kurzbeschreibung |
---|---|
add_user_meta | Adds meta data to a user. |
check_password_reset_key | Retrieves a user row based on password reset key and login. |
clean_user_cache | Cleans all user caches. |
count_many_users_posts | Gets the number of posts written by a list of users. |
count_users | Counts number of users who have each of the user roles. |
count_user_posts | Gets the number of posts a user has written. |
delete_user_meta | Removes metadata matching criteria from a user. |
delete_user_option | Deletes user option with global blog capability. |
email_exists | Determines whether the given email exists. |
get_blogs_of_user | Gets the sites a user belongs to. |
get_current_user_id | Gets the current user's ID. |
get_password_reset_key | Creates, stores, then returns a password reset key for user. |
get_users | Retrieves list of users matching criteria. |
get_user_count | Returns the number of active users in your installation. |
get_user_meta | Retrieves user meta field for a user. |
get_user_option | Retrieves user option that can be either per Site or per Network. |
is_user_member_of_blog | Finds out whether a user is a member of a given blog. |
new_user_email_admin_notice | Adds an admin notice alerting the user to check for confirmation request email after email address change. |
register_new_user | Handles registering a new user. |
reset_password | Handles resetting the user's password. |
retrieve_password | Handles sending a password retrieval email to a user. |
sanitize_user_field | Sanitizes user field based on context. |
send_confirmation_on_profile_email | Sends a confirmation request email when a change of user email address is attempted. |
setup_userdata | Sets up global user vars. |
update_user_caches | Updates all user caches. |
update_user_meta | Updates user meta field based on user ID. |
update_user_option | Updates user option with global blog capability. |
username_exists | Determines whether the given username exists. |
validate_username | Checks whether a username is valid. |
wp_authenticate_application_password | Authenticates the user using an application password. |
wp_authenticate_cookie | Authenticates the user using the WordPress auth cookie. |
wp_authenticate_email_password | Authenticates a user using the email and password. |
wp_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. |
wp_authenticate_username_password | Authenticates a user, confirming the username and password are valid. |
wp_cache_set_users_last_changed | Sets the last changed time for the 'users' cache group. |
wp_create_user | Provides a simpler way of inserting a user into the database. |
wp_create_user_request | Creates and logs a user request to perform a specific action. |
wp_destroy_all_sessions | Removes all session tokens for the current user from the database. |
wp_destroy_current_session | Removes the current session token from the database. |
wp_destroy_other_sessions | Removes all but the current session token for the current user for the database. |
wp_dropdown_users | Creates dropdown HTML content of users. |
wp_generate_user_request_key | Returns a confirmation key for a user action and stores the hashed version for future comparison. |
wp_get_all_sessions | Retrieves a list of sessions for the current user. |
wp_get_password_hint | Gets the text suggesting how to create strong passwords. |
wp_get_session_token | Retrieves the current session token from the logged_in cookie. |
wp_get_users_with_no_role | Gets the user IDs of all users with no role on this site. |
wp_get_user_contact_methods | Sets up the user contact methods. |
wp_get_user_request | Returns the user request object for the specified request ID. |
wp_insert_user | Inserts a user into the database. |
wp_is_application_passwords_available | Checks if Application Passwords is globally available. |
wp_is_application_passwords_available_for_user | Checks if Application Passwords is available for a specific user. |
wp_is_application_passwords_supported | Checks if Application Passwords is supported. |
wp_is_large_user_count | Determines whether the site has a large number of users. |
wp_is_password_reset_allowed_for_user | Checks if password reset is allowed for a specific user. |
wp_list_users | Lists all the users of the site, with several options available. |
wp_maybe_update_user_counts | Updates the total count of users on the site if live user counting is enabled. |
wp_register_persisted_preferences_meta | Registers the user meta property for persisted preferences. |
wp_register_user_personal_data_exporter | Registers the personal data exporter for users. |
wp_schedule_update_user_counts | Schedules a recurring recalculation of the total count of users. |
wp_send_new_user_notifications | Initiates email notifications related to the creation of new users. |
wp_send_user_request | Send a confirmation request email to confirm an action. |
wp_signon | Authenticates and logs a user in with 'remember' capability. |
wp_update_user | Updates a user in the database. |
wp_update_user_counts | Updates the total count of users on the site. |
wp_user_personal_data_exporter | Finds and exports personal data associated with an email address from the user and user_meta table. |
wp_user_request_action_description | Gets action description from the name and return a string. |
wp_validate_application_password | Validates the application password credentials passed via Basic Authentication. |
wp_validate_logged_in_cookie | Validates the logged-in cookie. |
wp_validate_user_request_key | Validates a user request by comparing the key with the request's key. |
_get_additional_user_keys | Returns a list of meta keys to be (maybe) populated in wp_update_user(). |
_wp_get_current_user | Retrieves the current user object. |
_wp_get_user_contactmethods | The old private function for setting up user contact methods. |
_wp_privacy_account_request_confirmed | Updates log when privacy request is confirmed. |
_wp_privacy_account_request_confirmed_message | Returns request confirmation message HTML. |
_wp_privacy_action_request_types | Gets all personal data request types. |
_wp_privacy_send_erasure_fulfillment_notification | Notifies the user when their erasure request is fulfilled. |
_wp_privacy_send_request_confirmation_notification | Notifies the site administrator via email when a request is confirmed. |