wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
rest_find_matching_pattern_property_schema › WordPress Function
Da5.6.0
Deprecaton/a
› rest_find_matching_pattern_property_schema ( $property, $args )
| Parametri: (2) |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Finds the schema for a property using the patternProperties keyword.
Sorgenti
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;
}