Electrician here. It’s a code violation. An extension cord isn’t designed or listed for permanent use or for being concealed inside walls. Also cutting the ends off would violate the listing for its normal use as an extension cord.
In the US the standard for installation of electrical conductors and equipment is the National Electrical Code. Flexible cords and cables are covered by Article 400 and 400.12 specifically says they shall not be used as a substitute for the fixed wiring of a structure or ran through walls or holes.
Latest Answers