wpseek.com
A WordPress-centric search engine for devs and theme authors
rest_find_matching_pattern_property_schema › WordPress Function
Since5.6.0
Deprecatedn/a
› rest_find_matching_pattern_property_schema ( $property, $args )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: |
Finds the schema for a property using the patternProperties keyword.
Source
function rest_find_matching_pattern_property_schema( $property, $args ) { if ( isset( $args['patternProperties'] ) ) { foreach ( $args['patternProperties'] as $pattern => $child_schema ) { if ( rest_validate_json_schema_pattern( $pattern, $property ) ) { return $child_schema; } } } return null; }