Skip to content

Instantly share code, notes, and snippets.

Created August 21, 2016 19:12
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' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment