Get errors from WP_Error to different variables
Shoving the error data into independent variable is a waste of effort. You already have the data you need in the WP_Error object and could get at it with pure PHP object and array syntax if you wanted, but let’s look at the methods the object provides for retrieving data (with notes copied from the … Read more