https://github.com/affiliatewp/AffiliateWP/issues/106