TypeError thrown

strip_tags(): Argument #1 ($string) must be of type string, WP_Error given