rest_validate_request_arg


rest_validate_request_arg ( $value, $request, $param )

Parameters:
  • (mixed) value
  • (WP_REST_Request) request
  • (string) param
Returns:
  • (true|WP_Error)
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_validate_enum, rest_do_request, wp_validate_user_request_key

Top Google Results

User discussions

wpseek mobile