|
17 | 17 | "\t\"label\": \"$1\",", |
18 | 18 | "\t\"name\": \"$2\",", |
19 | 19 | "\t\"type\": \"textarea\",", |
20 | | - "\t\"maxlength\": ${3:0},", |
21 | | - "\t\"rows\": ${4:0},", |
22 | | - "\t\"new_lines\": \"${5:wpautop|br}\"", |
| 20 | + "\t\"maxlength\": $3,", |
| 21 | + "\t\"rows\": ${4:8},", |
| 22 | + "\t\"new_lines\": \"${5|wpautop,br|}\"", |
23 | 23 | "}" |
24 | 24 | ] |
25 | 25 | }, |
|
73 | 73 | "\t\"label\": \"$1\",", |
74 | 74 | "\t\"name\": \"$2\",", |
75 | 75 | "\t\"type\": \"wysiwyg\",", |
76 | | - "\t\"tabs\": \"${3:visual|text}\",", |
77 | | - "\t\"toolbar\": \"${4:full|basic}\",", |
78 | | - "\t\"media_upload\": ${5:0},", |
79 | | - "\t\"delay\": ${6:1}", |
| 76 | + "\t\"tabs\": \"${3|visual\\,text,visual,text|}\",", |
| 77 | + "\t\"toolbar\": \"${4|full,basic|}\",", |
| 78 | + "\t\"media_upload\": ${5|false,true|},", |
| 79 | + "\t\"delay\": ${6|true,false|}", |
80 | 80 | "}" |
81 | 81 | ] |
82 | 82 | }, |
|
97 | 97 | "\t\"label\": \"$1\",", |
98 | 98 | "\t\"name\": \"$2\",", |
99 | 99 | "\t\"type\": \"image\",", |
100 | | - "\t\"return_format\": \"${3:array|url|id}\",", |
101 | | - "\t\"preview_size\": \"${4:thumbnail}\",", |
102 | | - "\t\"library\": \"${5:all|uploadedTo}\",", |
| 100 | + "\t\"return_format\": \"${3|array,url,id|}\",", |
| 101 | + "\t\"preview_size\": \"${4|thumbnail,medium,large,full|}\",", |
| 102 | + "\t\"library\": \"${5|all,uploadedTo|}\",", |
103 | 103 | "\t\"min_width\": ${6:0},", |
104 | 104 | "\t\"max_width\": ${7:0},", |
105 | 105 | "\t\"min_height\": ${8:0},", |
|
117 | 117 | "\t\"label\": \"$1\",", |
118 | 118 | "\t\"name\": \"$2\",", |
119 | 119 | "\t\"type\": \"file\",", |
120 | | - "\t\"return_format\": \"${3:array|url|id}\",", |
121 | | - "\t\"library\": \"${4:all|uploadedTo}\",", |
| 120 | + "\t\"return_format\": \"${3|array,url,id|}\",", |
| 121 | + "\t\"library\": \"${4|all,uploadedTo|}\",", |
122 | 122 | "\t\"min_size\": ${5:0},", |
123 | 123 | "\t\"max_size\": ${6:0},", |
124 | 124 | "\t\"mime_types\": \"${7:zip,pdf}\"", |
|
134 | 134 | "\t\"type\": \"gallery\",", |
135 | 135 | "\t\"min\": ${3:0},", |
136 | 136 | "\t\"max\": ${4:0},", |
137 | | - "\t\"preview_size\": \"${5:thumbnail}\",", |
138 | | - "\t\"library\": \"${6:all|uploadedTo}\",", |
| 137 | + "\t\"preview_size\": \"${5|thumbnail,medium,large,full|}\",", |
| 138 | + "\t\"library\": \"${6|all,uploadedTo|}\",", |
139 | 139 | "\t\"min_width\": ${7:0},", |
140 | 140 | "\t\"max_width\": ${8:0},", |
141 | 141 | "\t\"min_height\": ${9:0},", |
|
157 | 157 | "\t\t\"$3\": $4", |
158 | 158 | "\t},", |
159 | 159 | "\t\"default_value\": \"$5\",", |
160 | | - "\t\"allow_null\": ${6:0},", |
161 | | - "\t\"multiple\": ${7:0},", |
162 | | - "\t\"ui\": ${8:1},", |
163 | | - "\t\"ajax\": ${9:0}", |
| 160 | + "\t\"allow_null\": ${6|false,true|},", |
| 161 | + "\t\"multiple\": ${7|false,true|},", |
| 162 | + "\t\"ui\": ${8|true,false},", |
| 163 | + "\t\"ajax\": ${9|false,true|}", |
164 | 164 | "}" |
165 | 165 | ] |
166 | 166 | }, |
|
175 | 175 | "\t\t\"$3\": \"$4\"", |
176 | 176 | "\t},", |
177 | 177 | "\t\"default_value\": \"$5\",", |
178 | | - "\t\"layout\": \"${6:horizontal|vertical}\",", |
179 | | - "\t\"toggle\": ${7:1}", |
| 178 | + "\t\"layout\": \"${6|horizontal,vertical|}\",", |
| 179 | + "\t\"toggle\": ${7|true,false|}", |
180 | 180 | "}" |
181 | 181 | ] |
182 | 182 | }, |
|
187 | 187 | "\t\"label\": \"$1\",", |
188 | 188 | "\t\"name\": \"$2\",", |
189 | 189 | "\t\"type\": \"true_false\",", |
190 | | - "\t\"default_value\": ${3:0},", |
191 | | - "\t\"ui\": ${4:1}", |
| 190 | + "\t\"default_value\": ${3|0,1|},", |
| 191 | + "\t\"ui\": ${4|true,false|}", |
192 | 192 | "}" |
193 | 193 | ] |
194 | 194 | }, |
|
203 | 203 | "\t\t\"$3\": \"$4\"", |
204 | 204 | "\t},", |
205 | 205 | "\t\"default_value\": \"$5\",", |
206 | | - "\t\"other_choice\": ${6:0},", |
207 | | - "\t\"save_other_choice\": ${7:0},", |
208 | | - "\t\"layout\": \"${8:horizontal|vertical}\"", |
| 206 | + "\t\"other_choice\": ${6|false,true|},", |
| 207 | + "\t\"save_other_choice\": ${7|false,true|},", |
| 208 | + "\t\"layout\": \"${8|horizontal,vertical|}\"", |
209 | 209 | "}" |
210 | 210 | ] |
211 | 211 | }, |
|
216 | 216 | "\t\"label\": \"$1\",", |
217 | 217 | "\t\"name\": \"$2\",", |
218 | 218 | "\t\"type\": \"user_role_selector\",", |
219 | | - "\t\"return_value\": \"${3:object|name}\",", |
| 219 | + "\t\"return_value\": \"${3|object,name|}\",", |
220 | 220 | "\t\"allowed_roles\": [", |
221 | 221 | "\t\t\"$4\"", |
222 | 222 | "\t],", |
223 | | - "\t\"field_type\": \"${5:checkbox|multi_select|radio_buttons|select}\"", |
| 223 | + "\t\"field_type\": \"${5|checkbox,multi_select,radio_buttons,select|}\"", |
224 | 224 | "}" |
225 | 225 | ] |
226 | 226 | }, |
|
237 | 237 | "\t\"taxonomy\": [", |
238 | 238 | "\t\t\"$4\"", |
239 | 239 | "\t],", |
240 | | - "\t\"allow_null\": ${5:0},", |
241 | | - "\t\"multiple\": ${6:0},", |
242 | | - "\t\"return_format\": \"${7:object|id}\",", |
243 | | - "\t\"ui\": ${8:1}", |
| 240 | + "\t\"allow_null\": ${5|false,true},", |
| 241 | + "\t\"multiple\": ${6|false,true},", |
| 242 | + "\t\"return_format\": \"${7|object,id|}\",", |
| 243 | + "\t\"ui\": ${8|true,false|}", |
244 | 244 | "}" |
245 | 245 | ] |
246 | 246 | }, |
|
257 | 257 | "\t\"taxonomy\": [", |
258 | 258 | "\t\t\"$4\"", |
259 | 259 | "\t],", |
260 | | - "\t\"allow_null\": ${5:0},", |
261 | | - "\t\"multiple\": ${6:0}", |
| 260 | + "\t\"allow_null\": ${5|false,true|},", |
| 261 | + "\t\"multiple\": ${6|false,true|}", |
262 | 262 | "}" |
263 | 263 | ] |
264 | 264 | }, |
|
283 | 283 | "\t],", |
284 | 284 | "\t\"min\": ${7:0},", |
285 | 285 | "\t\"max\": ${8:0},", |
286 | | - "\t\"return_format\": \"${9:object|id}\"", |
| 286 | + "\t\"return_format\": \"${9|object,id|}\"", |
287 | 287 | "}" |
288 | 288 | ] |
289 | 289 | }, |
|
295 | 295 | "\t\"name\": \"$2\",", |
296 | 296 | "\t\"type\": \"taxonomy\",", |
297 | 297 | "\t\"taxonomy\": \"$3\",", |
298 | | - "\t\"field_type\": \"${4:checkbox|multi_select|radio_buttons|select}\",", |
299 | | - "\t\"allow_null\": ${5:0},", |
300 | | - "\t\"multiple\": ${6:0},", |
301 | | - "\t\"add_term\": ${7:0},", |
302 | | - "\t\"save_terms\": ${8:0},", |
303 | | - "\t\"load_terms\": ${9:0},", |
304 | | - "\t\"return_format\": \"${10:object|id}\"", |
| 298 | + "\t\"field_type\": \"${4|checkbox,multi_select,radio_buttons,select|}\",", |
| 299 | + "\t\"allow_null\": ${5|false,true|},", |
| 300 | + "\t\"multiple\": ${6|false,true|},", |
| 301 | + "\t\"add_term\": ${7|false,true|},", |
| 302 | + "\t\"save_terms\": ${8|false,true|},", |
| 303 | + "\t\"load_terms\": ${9|false,true|},", |
| 304 | + "\t\"return_format\": \"${10|object,id|}\"", |
305 | 305 | "}" |
306 | 306 | ] |
307 | 307 | }, |
|
315 | 315 | "\t\"role\": [", |
316 | 316 | "\t\t\"$3\"", |
317 | 317 | "\t],", |
318 | | - "\t\"allow_null\": ${3:0},", |
319 | | - "\t\"multiple\": ${4:0}", |
| 318 | + "\t\"allow_null\": ${3|false,true|},", |
| 319 | + "\t\"multiple\": ${4|false,true|}", |
320 | 320 | "}" |
321 | 321 | ] |
322 | 322 | }, |
|
329 | 329 | "\t\"type\": \"google_map\",", |
330 | 330 | "\t\"center_lat\": ${3:0},", |
331 | 331 | "\t\"center_lng\": ${4:0},", |
332 | | - "\t\"zoom\": ${5:0},", |
333 | | - "\t\"height\": ${6:100}", |
| 332 | + "\t\"zoom\": ${5:14},", |
| 333 | + "\t\"height\": ${6:400}", |
334 | 334 | "}" |
335 | 335 | ] |
336 | 336 | }, |
|
342 | 342 | "\t\"name\": \"$2\",", |
343 | 343 | "\t\"type\": \"date_picker\",", |
344 | 344 | "\t\"display_format\": \"${3:d.m.Y}\",", |
345 | | - "\t\"return_format\": \"${4:d.m.Y}\",", |
346 | | - "\t\"first_day\": ${5:1}", |
| 345 | + "\t\"return_format\": \"${4:Y-m-d}\",", |
| 346 | + "\t\"first_day\": ${5|1,0,2,3,4,5,6|}", |
347 | 347 | "}" |
348 | 348 | ] |
349 | 349 | }, |
|
354 | 354 | "\t\"label\": \"$1\",", |
355 | 355 | "\t\"type\": \"message\",", |
356 | 356 | "\t\"message\": \"$2\",", |
357 | | - "\t\"new_lines\": \"${3:wpautop|br}\",", |
358 | | - "\t\"esc_html\": ${4:1}", |
| 357 | + "\t\"new_lines\": \"${3|wpautop,br|}\",", |
| 358 | + "\t\"esc_html\": ${4|true,false|}", |
359 | 359 | "}" |
360 | 360 | ] |
361 | 361 | }, |
|
366 | 366 | "\t\"label\": \"$1\",", |
367 | 367 | "\t\"name\": \"$2\",", |
368 | 368 | "\t\"type\": \"tab\",", |
369 | | - "\t\"placement\": \"${3:top|bottom}\",", |
370 | | - "\t\"endpoint\": ${4:0}", |
| 369 | + "\t\"placement\": \"${3|top,bottom,left,right|}\",", |
| 370 | + "\t\"endpoint\": ${4|false,true|}", |
371 | 371 | "}" |
372 | 372 | ] |
373 | 373 | }, |
|
381 | 381 | "\t\"collapsed\": \"$3\",", |
382 | 382 | "\t\"min\": ${4:0},", |
383 | 383 | "\t\"max\": ${5:0},", |
384 | | - "\t\"layout\": \"${6:table|block|row}\",", |
| 384 | + "\t\"layout\": \"${6|table,block,row|}\",", |
385 | 385 | "\t\"button_label\": \"Add ${7:Item}\",", |
386 | 386 | "\t\"sub_fields\": [", |
387 | 387 | "\t\t$8", |
|
412 | 412 | "\t\"label\": \"$1\",", |
413 | 413 | "\t\"type\": \"link\",", |
414 | 414 | "\t\"name\": \"$2\",", |
415 | | - "\t\"return_format\": \"${3:array|url}\"", |
| 415 | + "\t\"return_format\": \"${3|array,url|}\"", |
416 | 416 | "}" |
417 | 417 | ] |
418 | 418 | }, |
|
423 | 423 | "\t\"label\": \"$1\",", |
424 | 424 | "\t\"name\": \"$2\",", |
425 | 425 | "\t\"type\": \"accordion\",", |
426 | | - "\t\"open\": ${3:false},", |
427 | | - "\t\"multi_expand\": ${4:true},", |
428 | | - "\t\"endpoint\": ${5:false}", |
| 426 | + "\t\"open\": ${3|false,true|},", |
| 427 | + "\t\"multi_expand\": ${4|true,false|},", |
| 428 | + "\t\"endpoint\": ${5|false,true|}", |
429 | 429 | "}" |
430 | 430 | ] |
431 | 431 | }, |
|
0 commit comments