is_site_live() ) { return false; } if ( $this->is_site_coming_soon() ) { return true; } // Check the URL is a store page when in "store coming soon" mode. if ( $this->is_store_coming_soon() && WCAdminHelper::is_store_page( $url ) ) { return true; } // Default to false. return false; } /** * Builds the relative URL from the WP instance. * * @internal * @link https://wordpress.stackexchange.com/a/274572 * @param \WP $wp WordPress environment instance. */ public function get_url_from_wp( \WP $wp ) { return home_url( add_query_arg( $wp->query_vars, $wp->request ) ); } }