Core Function
View Source on Trac ↗ rest_find_matching_pattern_property_schema()
rest_find_matching_pattern_property_schema( mixed $property, mixed $args ) Finds the schema for a property using the patternProperties keyword.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $property string | The property name to check. Required |
| $args array | The schema array to use. Required |
Return Value
((array)
| null) The schema of matching pattern property, or null if no patterns match.
Function Information
Since Version
5.6.0
Source File
wp-includes/rest-api.php
Advertisement