Settings
/loyalty-program/v1/settings
GET: /wp-json/wc-loyalty-program/v1/settings/sections
GET: http://example.com/wp-json/wc-loyalty-program/v1/settings/sectionsGET: http://example.com/wp-json/wc-loyalty-program/v1/settings/sections
Custom Headers JSON
{
"section": "points_earning"
}[
{
"id": "general",
"title": "General",
"fields": []
},
{
"id": "points_earning",
"title": "Points Earning",
"fields": []
},
{
"id": "redemption_expiry",
"title": "Redemption Expiry",
"fields": []
},
{
"id": "role_restrictions",
"title": "Role Restrictions",
"fields": []
},
{
"id": "help",
"title": "Help",
"fields": []
}
]GET: /wp-json/wc-loyalty-program/v1/settings/sections/{section_id}
GET: http://example.com/wp-json/wc-loyalty-program/v1/settings/sections/general{
"id": "general",
"fields": [
{
"title": "Price to points earned ratio",
"type": "price",
"desc_tip": "Define the ratio of points earned for each ₱ spent. Example: Setting a ratio of 1 means 1 point is earned for every ₱1,00 spent. Setting a ratio 5 means 5 points are earned for every ₱1,00 spent.",
"default": 1,
"id": "acfw_loyalprog_cost_points_ratio",
"value": 10
},
{
"title": "Points to price redeemed ratio",
"type": "number",
"desc_tip": "Define the worth of each point. Example: Setting a points to price redeemed ratio of 1 means 1 point is worth ₱1,00. Setting a ratio of 10 means 10 points is worth ₱1,00.",
"default": 10,
"id": "acfw_loyalprog_redeem_points_ratio",
"min": 1,
"value": 1
},
{
"title": "Points name",
"type": "text",
"desc_tip": "By default, points are called “Points” throughout the store. You can override the name of your points here.",
"placeholder": "Points",
"id": "acfw_loyalprog_points_name",
"value": "Points"
}
]
}GET: /wp-json/wc-loyalty-program/v1/settings/{lpfw_option_name}
PUT: /wp-json/wc-loyalty-program/v1/settings/{lpfw_option_name}
DELETE: /wp-json/wc-loyalty-program/v1/settings/{lpfw_option_name}
Last updated