rest_validate_json_schema_pattern
rest_validate_json_schema_pattern ( $pattern, $value )
Parameters:- (string) pattern The pattern to match against.
- (string) value The value to check.
Returns:- (bool) True if the pattern matches the given value, false otherwise.
Defined at: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Validates if the JSON Schema pattern matches a value.