Checking return with WP Error
Not entirely sure what you are asking, but if I understand correctly you want to perform some testing on the return value in order to avoid iterating a WP_Error object and perhaps handle errors in some way. According to the documentation get_terms() will return an array of term objects or false if no objects were … Read more