Looking to override AffiliateWP templates from a custom plugin instead of your child theme? This will be useful especially when using Oxygen since it disables the theme completely.
AffiliateWP provides a filter for that.
This members-only tutorial provides the steps on how to add a directory inside a custom functionality plugin to the list of paths that AffiliateWP checks for overriding its templates.
Note: It is better/easier and recommended to use actions and filter hooks where possible to customize plugins' output where possible. Template overriding should be the last resort.
Install and activate My Custom Functionality plugin.
Connect to your hosting account using a FTP client and navigate to site's /wp-content/plugins/my-custom-functionality-master.
Create a directory named say, affiliatewp where you would like to copy the templates from the plugin to, for customizations.
Inside the plugin's plugin.php add:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $399 one-time).
Already a member? Log in below or here.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 486 other subscribers
Please log in again.
The login page will open in a new tab. After logging in you can close it and return to this page.