rest_validate_request_arg


rest_validate_request_arg ( $value, $request, $param )

Parameters:
  • (mixed) $value
  • (WP_REST_Request) $request
  • (string) $param
Returns:
  • (WP_Error|boolean)
Defined at:

Description

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

Related Functions

rest_sanitize_request_arg, rest_parse_request_arg, rest_do_request, wp_validate_user_request_key, rest_validate_value_from_schema

Top Google Results

User discussions

wpseek mobile