allow public access to add_error function

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