Jump to content
Sign in to follow this  
mallorcanytt

Platform forum - maintenance mode

Recommended Posts

mallorcanytt

Hi I am about to do some maintenance on my forum and want to leave a message to the members. 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');
	

Share this post


Link to post
Share on other sites
Simon

You should try asking on the bbpress forums.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×