Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

rest_validate_enum()

3 tags 1 category

rest_validate_enum() — Validates that the given value is a member of the JSON Schema “enum”.

Inputs: $value (mixed): The value to validate. $args (array): The schema array to use. $param (string): The parameter name, used in error messages.

Returns true|WP_Error: True if the “enum” contains the value or a WP_Error instance otherwise.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…