rest_parse_request_arg


rest_parse_request_arg ( $value, $request, $param )

Parameters:
  • (mixed) value
  • (WP_REST_Request) request
  • (string) param
Returns:
  • (mixed)
Defined at:

Description

Parse a request argument based on details registered to the route.Runs a validation check and sanitizes the value, primarily to be used via the `sanitize_callback` arguments in the endpoint args registration.

Related Functions

rest_validate_request_arg, rest_sanitize_request_arg, rest_parse_embed_param, rest_ensure_request, rest_do_request

Top Google Results

User discussions

wpseek mobile