Skip to content

Commit 583a7f1

Browse files
author
Doğa Gürdal
committed
feat(snippets/json): add ACF conditional logic property snippet
1 parent deef2cf commit 583a7f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

snippets/json.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,20 @@
441441
"}"
442442
]
443443
},
444+
"Conditional Logic": {
445+
"prefix": "flyntConditionalLogic",
446+
"body": [
447+
"\"conditional_logic\": [",
448+
"\t[",
449+
"\t\t{",
450+
"\t\t\t\"fieldPath\": \"$1\",",
451+
"\t\t\t\"operator\": \"${2|==,!=|}\",",
452+
"\t\t\t\"value\": \"$3\"",
453+
"\t\t}",
454+
"\t]",
455+
"]"
456+
]
457+
},
444458
"Custom Post Type Config": {
445459
"prefix": "flyntCustomPostTypeConfig",
446460
"body": [

0 commit comments

Comments
 (0)