Hi JMCD! as I understand (I'm still learning english), you're looking for a way to install a hardware switch which can turn wifi on/off right?
I've seen a youtuber called Yakara Colombia, who did a lot of functions with ESP32, like adding the capability of bluetooth controllers, bluetooth audio...