Settings
GET: /wp-json/coupons/v1/settings/sections
GET: http://example.com/wp-json/coupons/v1/settings/sectionsGET: http://example.com/wp-json/coupons/v1/settings/sections
Custom Headers JSON
{
"section": "bogo_deals_section"
}[
{
"id": "general_section",
"title": "General",
"fields": [],
"show": true,
"module": false
},
{
"id": "bogo_deals_section",
"title": "BOGO Deals",
"fields": [],
"show": true,
"module": "acfw_bogo_deals_module"
},
{
"id": "scheduler_section",
"title": "Scheduler",
"fields": [],
"show": true,
"module": "acfw_scheduler_module"
},
{
"id": "role_restrictions_section",
"title": "Role Restrictions",
"fields": [],
"show": true,
"module": "acfw_role_restrict_module"
},
{
"id": "url_coupons_section",
"title": "URL Coupons",
"fields": [],
"show": true,
"module": "acfw_url_coupons_module"
},
{
"id": "modules_section",
"title": "Modules",
"fields": [],
"show": true,
"module": false
}
]GET: /wp-json/coupons/v1/settings/sections/{section_id}
GET: http://example.com/wp-json/coupons/v1/settings/sections/general{
"id": "general_section",
"fields": [
{
"title": "General",
"type": "title",
"desc": "",
"id": "acfw_general_main_title",
"value": false
},
{
"title": "Default coupon category",
"type": "select",
"desc_tip": "If a coupon is saved without specifying a category, give it this default category. This is useful when third-party tools create coupons or for coupons created via API.",
"id": "acfw_default_coupon_category",
"class": "wc-enhanced-select",
"placeholder": "Select a category",
"taxonomy": "shop_coupon_cat",
"options": [
{
"key": 55,
"label": "BOGO coupons"
},
{
"key": 35,
"label": "Redeemed"
},
{
"key": 19,
"label": "Uncategorized"
},
{
"key": 54,
"label": "User Owned"
}
],
"value": "19"
}
]
}GET: /wp-json/coupons/v1/settings/{setting_id}
PUT: /wp-json/coupons/v1/settings/{setting_id}
DELETE: /wp-json/coupons/v1/settings/{setting_id}
Last updated