Bluetooth audio switch?

I need to connect wired headphones to my phone while outputting the same audio to Bluetooth. It seems that Android turns off Bluetooth output when you plug in the wired headphones.

Is there a way or app to enable both at the same time? Thanks