There is a Legacy version
here.
Magic Passage
[two-actions] Spell 5Uncommon Concentrate Earth Manipulate Source Player Core pg. 342 2.0Traditions arcane,
primalDeity DranngvitRange touch;
Area 5-foot-wide, 10-foot-tall, 10-foot-deep section of wooden, plaster, or stone wall
Duration 1 hour
You create a visible tunnel through the wall in the chosen area, replacing the area with empty space. If the wall is thicker than 10 feet, the tunnel ends 10 feet in. Even a small layer of metal in the wall prevents this spell from functioning. This spell doesn't reduce the integrity of the structure. When the spell ends, anyone inside the tunnel is shunted to the nearest exit.
Heightened (7th) The tunnel can be up to 20 feet deep. The areas of the wall that contain your tunnel's entrance appear completely normal (unless viewed with truesight or a similar effect), despite the tunnel's existence. The tunnel's entrance functions as a solid wall, but you can specify a password or a trigger (page 303), allowing creatures to enter freely.