@faishal per the comment below about using `wp_send_json_success`, please remove this filter before the function returns so that subsequent unit tests won't unexpectedly get this filter applied.