WP_Error handles errors, but how can I show success with a message?

you could test for the absence of an error and then display a success message

if(!is_wp_error( $thing )) echo "yay!!";

Leave a Comment