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 3401 to 3450 of 4125 functions (Page 69 of 83)
wp_parse_auth_cookie()

Parses a cookie into its components.

$cookie $scheme
wp_set_auth_cookie()

Sets the authentication cookies based on user ID.

$user_id $remember $secure +1 more
wp_clear_auth_cookie()

Removes all of the cookies associated with authentication.

is_user_logged_in()

Determines whether the current visitor is a logged in user.

auth_redirect()

Checks if a user is logged in, if not it redirects them to the login page.

check_admin_referer()

Ensures intent by verifying that a user was referred from another admin page with the correct security nonce.

$action $query_arg
check_ajax_referer()

Verifies the Ajax request to prevent processing requests external of the blog.

$action $query_arg $stop
wp_redirect()

Redirects to another page.

$location $status $x_redirect_by
wp_sanitize_redirect()

Sanitizes a URL for use in a redirect.

$location
_wp_sanitize_utf8_in_redirect()

URL encodes UTF-8 characters in a URL.

$matches
wp_safe_redirect()

Performs a safe (local) redirect, using wp_redirect().

$location $status $x_redirect_by
wp_validate_redirect()

Validates a URL for use in a redirect.

$location $fallback_url
wp_notify_postauthor()

Notifies an author (and/or others) of a comment/trackback/pingback on a post.

$comment_id $deprecated
wp_notify_moderator()

Notifies the moderator of the site about a new comment that is awaiting approval.

$comment_id
wp_password_change_notification()

Notifies the blog admin of a user changing password, normally via email.

$user
wp_new_user_notification()

Emails login credentials to a newly-registered user.

$user_id $deprecated $notify
wp_nonce_tick()

Returns the time-dependent variable for nonce creation.

$action
wp_verify_nonce()

Verifies that a correct security nonce was used with time limit.

$nonce $action
wp_create_nonce()

Creates a cryptographic token tied to a specific action, user, user session,

$action
wp_salt()

Returns a salt to add to hashes.

$scheme
wp_hash()

Gets the hash of the given string.

$data $scheme $algo
wp_hash_password()

Creates a hash of a plain text password.

$password
wp_check_password()

Checks a plaintext password against a hashed password.

$password $hash $user_id
wp_password_needs_rehash()

Checks whether a password hash needs to be rehashed.

$hash $user_id
wp_generate_password()

Generates a random password drawn from the defined set of characters.

$length $special_chars $extra_special_chars
wp_rand()

Generates a random non-negative number.

$min $max
wp_set_password()

Updates the user's password with a new hashed one.

$password $user_id
get_avatar()

Retrieves the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.

$id_or_email $size $default_value +2 more
wp_text_diff()

Displays a human readable HTML representation of the difference between two strings.

$left_string $right_string $args
wp_initial_constants()

Defines initial WordPress constants.

wp_plugin_directory_constants()

Defines plugin directory WordPress constants.

wp_cookie_constants()

Defines cookie-related WordPress constants.

wp_ssl_constants()

Defines SSL-related WordPress constants.

wp_functionality_constants()

Defines functionality-related WordPress constants.

wp_templating_constants()

Defines templating-related WordPress constants.

get_query_var()

Retrieves the value of a query variable in the WP_Query class.

$query_var $default_value
get_queried_object()

Retrieves the currently queried object.

get_queried_object_id()

Retrieves the ID of the currently queried object.

set_query_var()

Sets the value of a query variable in the WP_Query class.

$query_var $value
query_posts()

Sets up The Loop with query parameters.

$query
wp_reset_query()

Destroys the previous query and sets up a new query.

wp_reset_postdata()

After looping through a separate query, this function restores

is_archive()

Determines whether the query is for an existing archive page.

is_post_type_archive()

Determines whether the query is for an existing post type archive page.

$post_types
is_attachment()

Determines whether the query is for an existing attachment page.

$attachment
is_author()

Determines whether the query is for an existing author archive page.

$author
is_category()

Determines whether the query is for an existing category archive page.

$category
is_tag()

Determines whether the query is for an existing tag archive page.

$tag
is_tax()

Determines whether the query is for an existing custom taxonomy archive page.

$taxonomy $term
is_date()

Determines whether the query is for an existing date archive.