Not building codes – they only apply to wiring inside the walls. But still a safety hazard.
I’m guessing you don’t understand how this particular system works.
If you look at the two wall plates shown at the Amazon link in the OP’s first post, you’ll see one with a recessed female plug (e.g. basically your standard wall plug), and another one with a recessed male inlet.
This kit allows you to install a wall plug up high on the wall behind a TV without the hassle of running cabling through the attic and dropping it inside the wall. You cut a hole in the wall behind the TV for the upper female plug, and a hole at the bottom of the wall for the male plug. A piece of standard Romex is dropped inside the wall to connect the two plugs.
So when it’s all finished you plug your TV into the upper plug. But there is no power because the lower plug “goes nowhere.” So – you plug a standard extension cord into an existing wall plug, and plug the female end into the lower male plug. Voila – your upper plug, and hence the TV, now has power.
Hopefully now you can see, if you switch out that lower plug to a standard (female) outlet, it will require a custom-made power cable with MALE plugs on BOTH ends to get power up to the TV.
Make sense?
Regards,
Wayne A. Pflughaupt