Any standard code adopted and approved by a city of the first class, city of the second class, or village as provided in section and the building permit requirements or occupancy permit requirements imposed by any such code or by section shall apply to all of the city or village and within the extraterritorial zoning jurisdiction of such city or village.