is_offline_mode() ) { return false; } // No need to show the page if the site is private. if ( ( new Status() )->is_private_site() ) { return false; } // If there is no connection, the page must be shown to give them a chance to connect by choosing a plan. if ( ! ( new Connection() )->is_connected() ) { return true; } // If the site already has premium plan, there is no need to show the page. if ( Premium_Features::has_any() ) { return false; } // For all other cases, the page should be shown only if the flag is set. It indicates that it's a new site. if ( $fallback !== false ) { return \get_option( $this->option_key, $fallback ); } return \get_option( $this->option_key ); } public function set( $value ) { if ( $value === true ) { update_option( $this->option_key, $value, false ); } else { delete_option( $this->option_key ); } } }