manifest / integrations / affiliates-api
Affiliates Api
Rest API for Itthinx Affiliate WordPress Plugin
★ 3stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/karser/affiliates-api/archive/refs/heads/master.zipFrom the readme
Rest API for Itthinx Affiliate WordPress Plugin
How it works:
1. Define the api key in wp-config.php
2. Save the hit hash and referrer id from cookie during registration
This may happen when the user submits the registration form so this code checks for the affiliate cookies and sends them back to the server along with the registration data
3. Submit a purchase back to the plugin
Troubleshooting
Share cookie between subdomain and domain
if the wordpress and your app are on different subdomains
(e.g your-domain.com and app.your-domain.com)
try adding a leading dot to the cookie settings: