à mettre dans le functions.php
et faire la page.html
function my_page_template_redirect()
{
if( ! is_user_logged_in() )
{
wp_redirect( '/page.html' );
exit();
}
}
add_action( 'template_redirect', 'my_page_template_redirect' );
ou alors
function wp_maintenance_mode(){
if( !is_user_logged_in()){
wp_die('BIENTÔT DISPONIBLE
');
}
}
add_action('get_header', 'wp_maintenance_mode');