WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 2501 to 2550 of 4125 functions (Page 51 of 83)
get_user_meta()

Retrieves user meta field for a user.

$user_id $key $single
update_user_meta()

Updates user meta field based on user ID.

$user_id $meta_key $meta_value +1 more
count_users()

Counts number of users who have each of the user roles.

$strategy $site_id
get_user_count()

Returns the number of active users in your installation.

$network_id
wp_maybe_update_user_counts()

Updates the total count of users on the site if live user counting is enabled.

$network_id
wp_update_user_counts()

Updates the total count of users on the site.

$network_id
wp_schedule_update_user_counts()

Schedules a recurring recalculation of the total count of users.

wp_is_large_user_count()

Determines whether the site has a large number of users.

$network_id
setup_userdata()

Sets up global user vars.

$for_user_id
wp_dropdown_users()

Creates dropdown HTML content of users.

$args
sanitize_user_field()

Sanitizes user field based on context.

$field $value $user_id +1 more
update_user_caches()

Updates all user caches.

$user
clean_user_cache()

Cleans all user caches.

$user
username_exists()

Determines whether the given username exists.

$username
email_exists()

Determines whether the given email exists.

$email
validate_username()

Checks whether a username is valid.

$username
wp_insert_user()

Inserts a user into the database.

$userdata
wp_update_user()

Updates a user in the database.

$userdata
wp_create_user()

Provides a simpler way of inserting a user into the database.

$username $password $email
_get_additional_user_keys()

Returns a list of meta keys to be (maybe) populated in wp_update_user().

$user
wp_get_user_contact_methods()

Sets up the user contact methods.

$user
_wp_get_user_contactmethods()

The old private function for setting up user contact methods.

$user
wp_get_password_hint()

Gets the text suggesting how to create strong passwords.

get_password_reset_key()

Creates, stores, then returns a password reset key for user.

$user
check_password_reset_key()

Retrieves a user row based on password reset key and login.

$key $login
retrieve_password()

Handles sending a password retrieval email to a user.

$user_login
reset_password()

Handles resetting the user's password.

$user $new_pass
register_new_user()

Handles registering a new user.

$user_login $user_email
wp_send_new_user_notifications()

Initiates email notifications related to the creation of new users.

$user_id $notify
wp_get_session_token()

Retrieves the current session token from the logged_in cookie.

wp_get_all_sessions()

Retrieves a list of sessions for the current user.

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_destroy_all_sessions()

Removes all session tokens for the current user from the database.

wp_get_users_with_no_role()

Gets the user IDs of all users with no role on this site.

$site_id
_wp_get_current_user()

Retrieves the current user object.

send_confirmation_on_profile_email()

Sends a confirmation request email when a change of user email address is attempted.

new_user_email_admin_notice()

Adds an admin notice alerting the user to check for confirmation request email

_wp_privacy_action_request_types()

Gets all personal data request types.

wp_register_user_personal_data_exporter()

Registers the personal data exporter for users.

$exporters
wp_user_personal_data_exporter()

Finds and exports personal data associated with an email address from the user and user_meta table.

$email_address
_wp_privacy_account_request_confirmed()

Updates log when privacy request is confirmed.

$request_id
_wp_privacy_send_request_confirmation_notification()

Notifies the site administrator via email when a request is confirmed.

$request_id
_wp_privacy_send_erasure_fulfillment_notification()

Notifies the user when their erasure request is fulfilled.

$request_id
_wp_privacy_account_request_confirmed_message()

Returns request confirmation message HTML.

$request_id
wp_create_user_request()

Creates and logs a user request to perform a specific action.

$email_address $action_name $request_data +1 more
wp_user_request_action_description()

Gets action description from the name and return a string.

$action_name
wp_send_user_request()

Send a confirmation request email to confirm an action.

$request_id
wp_generate_user_request_key()

Returns a confirmation key for a user action and stores the hashed version for future comparison.

$request_id
wp_validate_user_request_key()

Validates a user request by comparing the key with the request's key.

$request_id $key