wp386-child/functions.php
Stian Lund 42a034075c update
2024-08-13 13:08:43 +02:00

15 lines
468 B
PHP
Executable File

<?php
/**
* Custom template tags for this theme.
*/
require get_stylesheet_directory() . '/inc/template-tags.php';
// Activate WordPress Maintenance Mode
function wp_maintenance_mode() {
if (!current_user_can('edit_themes') || !is_user_logged_in()) {
wp_die('<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.');
}
}
// add_action('get_header', 'wp_maintenance_mode');
// Activate WordPress Maintenance Mode