функция
since 5.6.0
rest_get_allowed_schema_keywords()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
rest_get_allowed_schema_keywords(): string[]
Описание
Возвращает все допустимые свойства JSON-схемы.
Возвращаемое значение
string[]
Исходный код
wp-includes/rest-api.php:2125
function rest_get_allowed_schema_keywords() {
return array(
'title',
'description',
'default',
'type',
'format',
'enum',
'items',
'properties',
'additionalProperties',
'patternProperties',
'minProperties',
'maxProperties',
'minimum',
'maximum',
'exclusiveMinimum',
'exclusiveMaximum',
'multipleOf',
'minLength',
'maxLength',
'pattern',
'minItems',
'maxItems',
'uniqueItems',
'anyOf',
'oneOf',
);
}
История изменений
| Версия | Описание |
|---|---|
| 5.6.0 | Introduced. |

