Skip to content

Instantly share code, notes, and snippets.

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