Black Friday

30% off premium pluginsEnds 2 December

Shop the sale
Simple Points and Rewards

Developer Documentation

Simple Points and Rewards documentation

11 Simple Points and Rewards guides in Developer Documentation, including Actions & Filters Reference, AJAX Endpoints Reference and Custom Reward Types.

Actions & Filters Reference The WordPress actions and filters the plugin fires, for changing points, rewards, levels and display output from your own code. AJAX Endpoints Reference The admin-ajax actions behind the plugin's interactive features, their nonces, and when to use PHP functions instead. Custom Reward Types Building a bespoke reward: creating a Custom reward type, then running your own fulfilment code when a customer claims it. Translating the Plugin Translating the plugin with Loco Translate or your own language files, including how the configurable points labels are handled. PHP Functions Reference The PHP functions available to read and change a customer's points, level and referral data from a plugin or theme. Template Overrides Why template files cannot be overridden from a theme, and the hooks and CSS custom properties to use for customising output instead. PHP API: Custom Ways to Earn Registering your own ways to earn in code with spar_register_custom_earn_way(), and awarding the points from your own triggers. Data stored, cookies and privacy What the plugin stores about customers, the tables and cookies it uses, and the third-party services it relies on. Set up the REST API and API keys Switch on the REST API, create API keys with the right scopes, and connect apps, POS systems, Zapier or Make to your rewards program. REST API endpoints reference Every REST API endpoint with its method, what it does, who can call it and the API key scope it needs. Send webhooks to other services (Pro) Send signed notifications to Slack, a CRM or an automation tool when customers earn points, level up, claim rewards or refer friends.