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 2151 to 2200 of 4125 functions (Page 44 of 83)
rest_get_avatar_sizes()

Retrieves the pixel sizes for avatars.

rest_parse_date()

Parses an RFC3339 time into a Unix timestamp.

$date $force_utc
rest_parse_hex_color()

Parses a 3 or 6 digit hex color (with #).

$color
rest_get_date_with_gmt()

Parses a date into both its local and UTC equivalent, in MySQL datetime format.

$date $is_utc
rest_authorization_required_code()

Returns a contextual HTTP error code for authorization failure.

rest_validate_request_arg()

Validate a request argument based on details registered to the route.

$value $request $param
rest_sanitize_request_arg()

Sanitize a request argument based on details registered to the route.

$value $request $param
rest_parse_request_arg()

Parse a request argument based on details registered to the route.

$value $request $param
rest_is_ip_address()

Determines if an IP address is valid.

$ip
rest_sanitize_boolean()

Changes a boolean-like value into the proper boolean value.

$value
rest_is_boolean()

Determines if a given value is boolean-like.

$maybe_bool
rest_is_integer()

Determines if a given value is integer-like.

$maybe_integer
rest_is_array()

Determines if a given value is array-like.

$maybe_array
rest_sanitize_array()

Converts an array-like value to an array.

$maybe_array
rest_is_object()

Determines if a given value is object-like.

$maybe_object
rest_sanitize_object()

Converts an object-like value to an array.

$maybe_object
rest_get_best_type_for_value()

Gets the best type for a value.

$value $types
rest_handle_multi_type_schema()

Handles getting the best type for a multi-type schema.

$value $args $param
rest_validate_array_contains_unique_items()

Checks if an array is made up of unique items.

$input_array
rest_stabilize_value()

Stabilizes a value following JSON Schema semantics.

$value
rest_validate_json_schema_pattern()

Validates if the JSON Schema pattern matches a value.

$pattern $value
rest_find_matching_pattern_property_schema()

Finds the schema for a property using the patternProperties keyword.

$property $args
rest_format_combining_operation_error()

Formats a combining operation error into a WP_Error object.

$param $error
rest_get_combining_operation_error()

Gets the error of combining operation.

$value $param $errors
rest_find_any_matching_schema()

Finds the matching schema among the "anyOf" schemas.

$value $args $param
rest_find_one_matching_schema()

Finds the matching schema among the "oneOf" schemas.

$value $args $param +1 more
rest_are_values_equal()

Checks the equality of two values, following JSON Schema semantics.

$value1 $value2
rest_validate_enum()

Validates that the given value is a member of the JSON Schema "enum".

$value $args $param
rest_get_allowed_schema_keywords()

Get all valid JSON schema properties.

rest_validate_value_from_schema()

Validate a value based on a schema.

$value $args $param
rest_validate_null_value_from_schema()

Validates a null value based on a schema.

$value $param
rest_validate_boolean_value_from_schema()

Validates a boolean value based on a schema.

$value $param
rest_validate_object_value_from_schema()

Validates an object value based on a schema.

$value $args $param
rest_validate_array_value_from_schema()

Validates an array value based on a schema.

$value $args $param
rest_validate_number_value_from_schema()

Validates a number value based on a schema.

$value $args $param
rest_validate_string_value_from_schema()

Validates a string value based on a schema.

$value $args $param
rest_validate_integer_value_from_schema()

Validates an integer value based on a schema.

$value $args $param
rest_sanitize_value_from_schema()

Sanitize a value based on a schema.

$value $args $param
rest_preload_api_request()

Append result of internal request to REST API for purpose of preloading data to be attached to a page.

$memo $path
rest_parse_embed_param()

Parses the "_embed" parameter into the list of resources to embed.

$embed
rest_filter_response_by_context()

Filters the response to remove any fields not available in the given context.

$response_data $schema $context
rest_default_additional_properties_to_false()

Sets the "additionalProperties" to false by default for all object definitions in the schema.

$schema
rest_get_route_for_post()

Gets the REST API route for a post.

$post
rest_get_route_for_post_type_items()

Gets the REST API route for a post type.

$post_type
rest_get_route_for_term()

Gets the REST API route for a term.

$term
rest_get_route_for_taxonomy_items()

Gets the REST API route for a taxonomy.

$taxonomy
rest_get_queried_resource_route()

Gets the REST route for the currently queried object.

rest_get_endpoint_args_for_schema()

Retrieves an array of endpoint arguments from the item schema and endpoint method.

$schema $method
rest_convert_error_to_response()

Converts an error to a response object.

$error
wp_is_rest_endpoint()

Checks whether a REST API endpoint request is currently being handled.