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