Skip to content

Commit 607e811

Browse files
author
Doğa Gürdal
committed
fix(snippets/json): reorder ACF checkbox field snippet and set correct type
1 parent f7b5e40 commit 607e811

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

snippets/json.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@
170170
"{",
171171
"\t\"label\": \"$1\",",
172172
"\t\"name\": \"$2\",",
173-
"\t\"type\": \"select\",",
173+
"\t\"type\": \"checkbox\",",
174+
"\t\"layout\": \"${3|horizontal,vertical|}\",",
175+
"\t\"toggle\": ${4|false,true|},",
174176
"\t\"choices\": {",
175-
"\t\t\"$3\": \"$4\"",
177+
"\t\t\"$5\": \"$6\"",
176178
"\t},",
177-
"\t\"default_value\": \"$5\",",
178-
"\t\"layout\": \"${6|horizontal,vertical|}\",",
179-
"\t\"toggle\": ${7|true,false|}",
179+
"\t\"default_value\": \"${7:$5}\"",
180180
"}"
181181
]
182182
},

0 commit comments

Comments
 (0)