Adds add_wp_error action to add method of WP_Error