Re: Maintenance Mode?
Hi
I am about to do some maintenance on my forum and want to leave a message to the members.
I have searhed the forums and the web without result.
How can this be done in a easy way. Something like below but for bbpress or a plugin maybe?
function wpr_maintenance_mode() {
if ( !current_user_can( ‘edit_themes’ ) || !is_user_logged_in() ) {
wp_die(‘Maintenance, please come back soon.’);
}
}
add_action(‘get_header’, ‘wpr_maintenance_mode’);