I stand with the people of Ukraine during this heinous assault on their freedoms, their independence, and their very lives.

2020-07-14

WordPress Maintenance Mode

 14 Jul 2020  Snippets

WordPress Maintenance Mode

Add the following to current theme’s functions.php before the closing PHP tag:

/*
  Place the code below at the end of the theme's 'functions.php' file
*/

// Activate WordPress Maintenance Mode
function wp_maintenance_mode() {
if (!current_user_can('edit_themes') || !is_user_logged_in()) {
wp_die('<h1>Website Under Construction</h1><br/>Please check back later.');
}
}
add_action('get_header', 'wp_maintenance_mode');
Webmentions & Comments

ETH Deposit Address

BTC Deposit Address

Copyright © Paramdeo Singh. Made with ☕️ in Guyana. All Rights Reserved.

Last Site Build on 18 Mar 2022

1MB Club Badge

Paramdeo Singh Guyana

Riding the wave of consciousness in this treacherous mortal sea.

Technology Design Strategy Literature Personal Blogs