field-fragments
6 months ago
fields
2 months ago
common.schema.json
6 months ago
field-group.schema.json
2 months ago
field.schema.json
6 months ago
internal-properties.schema.json
6 months ago
post-type.schema.json
2 months ago
scf-identifier.schema.json
6 months ago
taxonomy.schema.json
2 months ago
ui-options-page.schema.json
6 months ago
common.schema.json
92 lines
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "https://raw.githubusercontent.com/WordPress/secure-custom-fields/trunk/schemas/common.schema.json", |
| 4 | "title": "SCF Common Definitions", |
| 5 | "description": "Shared definitions for SCF schemas including common entity properties and reserved terms", |
| 6 | "definitions": { |
| 7 | "title": { |
| 8 | "type": "string", |
| 9 | "minLength": 1, |
| 10 | "maxLength": 255, |
| 11 | "description": "The title/name of this entity" |
| 12 | }, |
| 13 | "menu_order": { |
| 14 | "type": "integer", |
| 15 | "minimum": 0, |
| 16 | "default": 0, |
| 17 | "description": "The order of this entity in the admin menu" |
| 18 | }, |
| 19 | |
| 20 | "active": { |
| 21 | "type": "boolean", |
| 22 | "default": true, |
| 23 | "description": "[SCF] Whether this entity is active" |
| 24 | }, |
| 25 | "advanced_configuration": { |
| 26 | "type": [ "boolean", "integer" ], |
| 27 | "default": false, |
| 28 | "description": "[SCF] Whether advanced configuration options are enabled. Accepts boolean or integer (0/1)." |
| 29 | }, |
| 30 | |
| 31 | "modified": { |
| 32 | "type": "integer", |
| 33 | "minimum": 0, |
| 34 | "description": "[SCF Export Only] Unix timestamp of last modification" |
| 35 | }, |
| 36 | "import_source": { |
| 37 | "type": "string", |
| 38 | "description": "[SCF Export Only] Source of import if this entity was imported" |
| 39 | }, |
| 40 | "import_date": { |
| 41 | "type": "string", |
| 42 | "description": "[SCF Export Only] Date when this entity was imported" |
| 43 | }, |
| 44 | |
| 45 | "wordpressReservedTerms": { |
| 46 | "description": "WordPress reserved terms that cannot be used as post type or taxonomy slugs. Using these terms will cause conflicts with WordPress core functionality.", |
| 47 | "enum": [ |
| 48 | "action", |
| 49 | "attachment", |
| 50 | "author", |
| 51 | "category", |
| 52 | "comment", |
| 53 | "custom_css", |
| 54 | "customize_changeset", |
| 55 | "day", |
| 56 | "feed", |
| 57 | "hour", |
| 58 | "link_category", |
| 59 | "minute", |
| 60 | "month", |
| 61 | "name", |
| 62 | "nav_menu_item", |
| 63 | "oembed_cache", |
| 64 | "order", |
| 65 | "orderby", |
| 66 | "page", |
| 67 | "paged", |
| 68 | "post", |
| 69 | "post_format", |
| 70 | "post_tag", |
| 71 | "post_type", |
| 72 | "revision", |
| 73 | "search", |
| 74 | "second", |
| 75 | "tag", |
| 76 | "taxonomy", |
| 77 | "term", |
| 78 | "theme", |
| 79 | "type", |
| 80 | "user_request", |
| 81 | "w", |
| 82 | "wp_block", |
| 83 | "wp_global_styles", |
| 84 | "wp_navigation", |
| 85 | "wp_template", |
| 86 | "wp_template_part", |
| 87 | "year" |
| 88 | ] |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 |