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

Glossary Term

rest_find_one_matching_schema()

3 tags 1 category

rest_find_one_matching_schema() — Finds the matching schema among the “oneOf” schemas.

Inputs: $value (mixed): The value to validate. $args (array): The schema array to use. $param (string): The parameter name, used in error messages. $stop_after_first_match (bool): Optional. Whether the process should stop after the first successful match.

Returns array|WP_Error: The matching schema or WP_Error instance if the number of matching schemas is not equal to one.

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…