wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
rest_find_matching_pattern_property_schema › WordPress Function
Od5.6.0
Przestarzałyn/a
› rest_find_matching_pattern_property_schema ( $property, $args )
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Finds the schema for a property using the patternProperties keyword.
Źródło
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; }