Skip to content

Instantly share code, notes, and snippets.

@grantambrose
Created August 21, 2016 19:12
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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