This is a community-maintained repository of code snippets that help modify the default behavior of AffiliateWP.
Snippets are organized into categories (folders) and each snippet is placed in its own file with a name that describes what it does.
- Click on the filename of the snippet you'd like to use. Each file is set up to be a WordPress plugin.
- Click the "Raw" button (next to "Blame" and "History") at the top right.
- Save the page from your browser to your wp-content/plugins folder and upload to your server. Be sure to save it as a .php file and add it to a folder with the same name as the file (minus the .php). Alternatively you can compress the file as a .zip file and upload as a plugin from within WordPress.
- Activate the plugin from the WordPress plugins page.
Need more help installing plugins?
We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please fork the repository and then create a pull request.
Please refer to the Contributing guidelines before submitting your pull request.
If there is a snippet you are unable to find and would like to propose get written, please open an issue and describe your need.
This is not a tutorial archive. Please see the tutorials section of the AffiliateWP Docs if you're looking for instructions on how to implement these snippets (and others).
These snippets come with no guarantees. Due to the constant evolution of the AffiliateWP codebase, it is possible that the behavior of these snippets may change overtime. Find something broken? Let us know!