Programatically switch page template?
you can use template_redirect action hook to php include your maintenance mode template file using a simple option in options database. When you turn maintenance mode on add an option for example: add_option(‘maintenance_mode_on’); then with this code you check if that option is set and if so you redirect to your desired template file: function … Read more