Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce Account FIelds using Advance Custom Fields Plugin
[
{
"key": "group_5d2618fd16e41",
"title": "WooCommerce Account Fields",
"fields": [
{
"key": "field_5d261ab780bec",
"label": "Phone number",
"name": "phone_number",
"type": "intl_tel_input",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": " form-row form-row form-row",
"id": ""
},
"separateDialCode": 0,
"allowDropdown": 0,
"initialCountry": "auto",
"excludeCountries": "",
"onlyCountries": "",
"preferredCountries": ""
},
{
"key": "field_5d26194d3d274",
"label": "Location",
"name": "location",
"type": "text",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": " form-row form-row",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5d264709a8b05",
"label": "Terms",
"name": "terms",
"type": "true_false",
"instructions": "I agree to the Terms and Conditions.",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": " form-row form-row form-row form-row form-row",
"id": ""
},
"message": "",
"default_value": 1,
"ui": 1,
"ui_on_text": "",
"ui_off_text": ""
}
],
"location": [
[
{
"param": "wc_account_fields",
"operator": "==",
"value": "account_form"
},
{
"param": "user_form",
"operator": "==",
"value": "edit"
}
]
],
"menu_order": 2,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment