// add a custom Coming Soon page add_action( 'template_redirect', 'my_custom_coming_soon' ); function my_custom_coming_soon() { if( !is_user_logged_in() && !is_page( 'coming-soon' ) ){ wp_redirect( site_url( 'coming-soon' ) ); exit(); } } // To disable the coming soon page, just comment out this line by adding // at the start //add_action( 'template_redirect', 'my_custom_coming_soon' );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter