Skip to content

Instantly share code, notes, and snippets.

@grantambrose
Created August 21, 2016 19:12
Show Gist options
  • Save grantambrose/be3b66c6bd2ba14597611773127e4875 to your computer and use it in GitHub Desktop.
Save grantambrose/be3b66c6bd2ba14597611773127e4875 to your computer and use it in GitHub Desktop.
Create a custom Coming Soon page with Beaver Builder
// 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();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment