Repository navigation
Expand file tree
/
Copy pathpluginConfig.json
More file actions
130 lines (130 loc) · 4.65 KB
/
Copy pathpluginConfig.json
File metadata and controls
130 lines (130 loc) · 4.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"pluginName": "WP-React-CPT Plugin",
"pluginURI": "www.example.com",
"pluginAuthor": "John Doe",
"pluginVersion": "1.0.0",
"postTypeDTOName": "wordpressData",
"shortcodeName": "display_custom_posts",
"reactEntryPointId": "root",
"generateNewPostTypeKey": false,
"postType": {
"postTypeKey": "custom_post_7f3b1b1b1b1b1",
"postTypeSingularName": "CPT",
"postTypePluralName": "CPTs"
},
"generateNewFieldsKeys": false,
"fieldGroups": [
{
"key": "field_group_7f3b1b1b1b1b1",
"title": "CPT Fields",
"fields": [
{
"key": "field_5f3b1b1b1b1b1",
"label": "Custom Text Field",
"type": "text",
"instructions": "Text Instructions..."
},
{
"key": "field_5f3b1b1b1b1b2",
"label": "Custom Number Field",
"type": "number",
"instructions": "Number Instructions..."
},
{
"key": "field_5f3b1b1b1b1b6",
"label": "Custom Textarea Field",
"type": "textarea",
"instructions": "Textarea Instructions..."
},
{
"key": "field_5f3b1b1b1b1b3",
"label": "Custom Select Field",
"type": "select",
"instructions": "Select Instructions...",
"choices": {
"option1": "Option 1",
"option2": "Option 2",
"option3": "Option 3"
}
},
{
"key": "field_5f3b1b1b1b1b4",
"label": "Custom Checkbox Field",
"type": "checkbox",
"instructions": "Checkbox Instructions...",
"choices": {
"option1": "Option 1",
"option2": "Option 2",
"option3": "Option 3"
}
},
{
"key": "field_5f3b1b1b1b1b5",
"label": "Custom Radio Field",
"type": "radio",
"instructions": "Radio Instructions...",
"choices": {
"option1": "Option 1",
"option2": "Option 2",
"option3": "Option 3"
}
},
{
"key": "field_5f3b1b1b1b1b7",
"label": "Custom Date Picker",
"type": "date_picker",
"instructions": "Select a date."
},
{
"key": "field_5f3b1b1b1b1b8",
"label": "Custom Image Field",
"type": "image",
"instructions": "Image Instructions..."
},
{
"key": "field_5f3b1b1b1b1b9",
"label": "Custom File Field",
"type": "file",
"instructions": "File Instructions..."
},
{
"key": "field_5f3b1b1b1b1b10",
"label": "Custom Gallery Field",
"type": "gallery",
"instructions": "Gallery Instructions..."
},
{
"key": "field_5f3b1b1b1b1b11",
"label": "Custom Google Map",
"type": "google_map",
"instructions": "Google Map Instructions..."
}
]
}
],
"postTypeOptionsGroup": {
"fields": [
{
"key": "field_5o3b1b1b1b1b11",
"label": "Google Maps API Key",
"type": "text",
"instructions": "Enter your Google Maps API Key"
},
{
"key": "field_repeater_options_5f3b1b1b1b1b1",
"label": "Custom Repeater Field",
"type": "repeater",
"instructions": "Custom Repeater Instructions...",
"sub_fields": [
{
"key": "sub_field_5os3b1b1b1b1b1",
"label": "Custom Text Field",
"instructions": "Repeater Text Instructions...",
"type": "text"
}
],
"button_label": "Add Text Field"
}
]
}
}