That must have been a few years ago and he must have been an oddball cause the wearing of wigs in court stopped 1949, unless you were an extremely young offender
I appeared for a traffic violation in 2005. The cop showed up but didn’t have the facts straight so the little wigged dude dismisssed the case. Saved me $700 and 3 points on my license.