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 2551 to 2600 of 4125 functions (Page 52 of 83)
wp_get_user_request()

Returns the user request object for the specified request ID.

$request_id
wp_is_application_passwords_supported()

Checks if Application Passwords is supported.

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.

$user
wp_register_persisted_preferences_meta()

Registers the user meta property for persisted preferences.

wp_cache_set_users_last_changed()

Sets the last changed time for the 'users' cache group.

wp_is_password_reset_allowed_for_user()

Checks if password reset is allowed for a specific user.

$user
_wp_http_get_object()

Returns the initialized WP_Http Object

wp_safe_remote_request()

Retrieves the raw response from a safe HTTP request.

$url $args
wp_safe_remote_get()

Retrieves the raw response from a safe HTTP request using the GET method.

$url $args
wp_safe_remote_post()

Retrieves the raw response from a safe HTTP request using the POST method.

$url $args
wp_safe_remote_head()

Retrieves the raw response from a safe HTTP request using the HEAD method.

$url $args
wp_remote_request()

Performs an HTTP request and returns its response.

$url $args
wp_remote_get()

Performs an HTTP request using the GET method and returns its response.

$url $args
wp_remote_post()

Performs an HTTP request using the POST method and returns its response.

$url $args
wp_remote_head()

Performs an HTTP request using the HEAD method and returns its response.

$url $args
wp_remote_retrieve_headers()

Retrieves only the headers from the raw response.

$response
wp_remote_retrieve_header()

Retrieves a single header by name from the raw response.

$response $header
wp_remote_retrieve_response_code()

Retrieves only the response code from the raw response.

$response
wp_remote_retrieve_response_message()

Retrieves only the response message from the raw response.

$response
wp_remote_retrieve_body()

Retrieves only the body from the raw response.

$response
wp_remote_retrieve_cookies()

Retrieves only the cookies from the raw response.

$response
wp_remote_retrieve_cookie()

Retrieves a single cookie by name from the raw response.

$response $name
wp_remote_retrieve_cookie_value()

Retrieves a single cookie's value by name from the raw response.

$response $name
wp_http_supports()

Determines if there is an HTTP Transport that can process this request.

$capabilities $url
get_http_origin()

Gets the HTTP Origin of the current request.

get_allowed_http_origins()

Retrieves list of allowed HTTP origins.

is_allowed_http_origin()

Determines if the HTTP origin is an authorized one.

$origin
send_origin_headers()

Sends Access-Control-Allow-Origin and related headers if the current request

wp_http_validate_url()

Validates a URL for safe use in the HTTP API.

$url
allowed_http_request_hosts()

Marks allowed redirect hosts safe for HTTP requests as well.

$is_external $host
ms_allowed_http_request_hosts()

Adds any domain in a multisite installation for safe HTTP requests to the

$is_external $host
wp_parse_url()

A wrapper for PHP's parse_url() function that handles consistency in the return values

$url $component
_get_component_from_parsed_url_array()

Retrieves a specific component from a parsed URL array.

$url_parts $component
_wp_translate_php_url_constant_to_key()

Translates a PHP_URL_* constant to the named array keys PHP uses.

$constant
add_metadata()

Adds metadata for the specified object.

$meta_type $object_id $meta_key +2 more
update_metadata()

Updates metadata for the specified object. If no value already exists for the specified object

$meta_type $object_id $meta_key +2 more
delete_metadata()

Deletes metadata for the specified object.

$meta_type $object_id $meta_key +2 more
get_metadata()

Retrieves the value of a metadata field for the specified object type and ID.

$meta_type $object_id $meta_key +1 more
get_metadata_raw()

Retrieves raw metadata value for the specified object.

$meta_type $object_id $meta_key +1 more
get_metadata_default()

Retrieves default metadata value for the specified meta key and object.

$meta_type $object_id $meta_key +1 more
metadata_exists()

Determines if a meta field with the given key exists for the given object ID.

$meta_type $object_id $meta_key
get_metadata_by_mid()

Retrieves metadata by meta ID.

$meta_type $meta_id
update_metadata_by_mid()

Updates metadata by meta ID.

$meta_type $meta_id $meta_value +1 more
delete_metadata_by_mid()

Deletes metadata by meta ID.

$meta_type $meta_id
update_meta_cache()

Updates the metadata cache for the specified objects.

$meta_type $object_ids
wp_metadata_lazyloader()

Retrieves the queue for lazy-loading metadata.

get_meta_sql()

Given a meta query, generates SQL clauses to be appended to a main query.

$meta_query $type $primary_table +2 more
_get_meta_table()

Retrieves the name of the metadata table for the specified object type.

$type
is_protected_meta()

Determines whether a meta key is considered protected.

$meta_key $meta_type