rest_sanitize_value_from_schema


rest_sanitize_value_from_schema ( $value, $args, $param = '' )

Parameters:
  • (mixed) value The value to sanitize.
  • (array) args Schema array to use for sanitization.
  • (string) param The parameter name, used in error messages.
Returns:
  • (mixed|WP_Error) The sanitized value or a WP_Error instance if the value cannot be safely sanitized.
Defined at:
Change Log:
  • 5: .

Description

Sanitize a value based on a schema.

Related Functions

rest_validate_value_from_schema, rest_sanitize_array, rest_sanitize_boolean, rest_sanitize_request_arg, rest_stabilize_value

Top Google Results

User discussions

wpseek mobile