Create a custom Coming Soon page with Beaver Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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