Green’s Dictionary of Slang

wisenheimer n.

also weisenheimer, wisenstein
[wise adj. (1) + Ger./Jewish sfx -heimer, usu. part of a surname]

1. [20C+] a know-it-all, a self-appointed smart fellow.

2. attrib. use of sense 1.