private function page_delete_network() {
		$network_id = filter_input( INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT );
		$network    = $network_id ? get_network( $network_id ) : null;

		// Bail if invalid network ID.
		if ( empty( $network ) ) {
			wp_die( esc_html__( 'Invalid network id.', 'wp-multi-network' ) );
		}

		$sites = get_sites( array( 'network_id' => $network->id ) );

		$add_network_url = $this->admin_url( array( 'page' => 'add-new-network' ) );
		?>

		<div class="wrap">
			<h1>
				<?php
				esc_html_e( 'Delete Network', 'wp-multi-network' );

				if ( current_user_can( 'create_networks' ) ) {
					?>
					<a href="<?php echo esc_url( $add_network_url ); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'network', 'wp-multi-network' ); ?></a>
					<?php
				}
				?>
			</h1>

			<form method="post" action="<?php echo esc_attr( remove_query_arg( 'action' ) ); ?>">
				<?php

				if ( ! empty( $sites ) ) {
					?>

					<div id="message" class="network-delete">
						<p><?php esc_html_e( 'The following sites are associated with this network:', 'wp-multi-network' ); ?></p>
						<ul class="delete-sites">
							<?php

							foreach ( $sites as $site ) {
								?>
								<li><?php echo esc_html( $site->domain . $site->path ); ?></li>
								<?php
							}

							?>
						</ul>
						<p>
							<input type="checkbox" name="override" id="override">
							<label for="override">
							<?php
							if ( wp_should_rescue_orphaned_sites() ) {
								esc_html_e( 'Rescue these sites', 'wp-multi-network' );
							} else {
								esc_html_e( 'Delete these sites', 'wp-multi-network' );
							}
							?>
							</label>
						</p>
					</div>
					<p>
						<?php
						printf(
							/* translators: %s: network domain and path */
							esc_html__( 'Are you sure you want to delete the entire "%s" network?', 'wp-multi-network' ),
							esc_html( $network->domain . $network->path )
						);
						?>
					</p>

					<?php
				}

				wp_nonce_field( 'edit_network', 'network_edit' );

				submit_button( esc_html__( 'Delete Network', 'wp-multi-network' ), 'primary', 'delete', false );
				?>

				<a class="button" href="<?php echo esc_url( $this->admin_url() ); ?>"><?php esc_html_e( 'Cancel', 'wp-multi-network' ); ?></a>
			</form>
		</div>

		<?php
	}
private function page_delete_network() {
		$network_id = filter_input( INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT );
		$network    = $network_id ? get_network( $network_id ) : null;

		// Bail if invalid network ID.
		if ( empty( $network ) ) {
			wp_die( esc_html__( 'Invalid network id.', 'wp-multi-network' ) );
		}

		$sites = get_sites( array( 'network_id' => $network->id ) );

		$add_network_url = $this->admin_url( array( 'page' => 'add-new-network' ) );
		?>

		<div class="wrap">
			<h1>
				<?php
				esc_html_e( 'Delete Network', 'wp-multi-network' );

				if ( current_user_can( 'create_networks' ) ) {
					?>
					<a href="<?php echo esc_url( $add_network_url ); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'network', 'wp-multi-network' ); ?></a>
					<?php
				}
				?>
			</h1>

			<form method="post" action="<?php echo esc_attr( remove_query_arg( 'action' ) ); ?>">
				<?php

				if ( ! empty( $sites ) ) {
					?>

					<div id="message" class="network-delete">
						<p><?php esc_html_e( 'The following sites are associated with this network:', 'wp-multi-network' ); ?></p>
						<ul class="delete-sites">
							<?php

							foreach ( $sites as $site ) {
								?>
								<li><?php echo esc_html( $site->domain . $site->path ); ?></li>
								<?php
							}

							?>
						</ul>
						<p>
							<input type="checkbox" name="override" id="override">
							<label for="override">
							<?php
							if ( wp_should_rescue_orphaned_sites() ) {
								esc_html_e( 'Rescue these sites', 'wp-multi-network' );
							} else {
								esc_html_e( 'Delete these sites', 'wp-multi-network' );
							}
							?>
							</label>
						</p>
					</div>
					<p>
						<?php
						printf(
							/* translators: %s: network domain and path */
							esc_html__( 'Are you sure you want to delete the entire "%s" network?', 'wp-multi-network' ),
							esc_html( $network->domain . $network->path )
						);
						?>
					</p>

					<?php
				}

				wp_nonce_field( 'edit_network', 'network_edit' );

				submit_button( esc_html__( 'Delete Network', 'wp-multi-network' ), 'primary', 'delete', false );
				?>

				<a class="button" href="<?php echo esc_url( $this->admin_url() ); ?>"><?php esc_html_e( 'Cancel', 'wp-multi-network' ); ?></a>
			</form>
		</div>

		<?php
	}
private function page_delete_network ( ) { $ network_id = filter_input ( INPUT_GET , 'id' , FILTER_SANITIZE_NUMBER_INT ) ; $ network = $ network_id ? get_network ( $ network_id ) : null ; // Bail if invalid network ID. if ( empty ( $ network ) ) { wp_die ( esc_html__ ( 'Invalid network id.' , 'wp-multi-network' ) ) ; } $ sites = get_sites ( array ( 'network_id' => $ network -> id ) ) ; $ add_network_url = $ this -> admin_url ( array ( 'page' => 'add-new-network' ) ) ; ?>

		<div class="wrap">
			<h1>
				<?php esc_html_e ( 'Delete Network' , 'wp-multi-network' ) ; if ( current_user_can ( 'create_networks' ) ) { ?>
					<a href="<?php echo esc_url ( $ add_network_url ) ; ?>" class="add-new-h2"><?php echo esc_html_x ( 'Add New' , 'network' , 'wp-multi-network' ) ; ?></a>
					<?php } ?>
			</h1>

			<form method="post" action="<?php echo esc_attr ( remove_query_arg ( 'action' ) ) ; ?>">
				<?php if ( ! empty ( $ sites ) ) { ?>

					<div id="message" class="network-delete">
						<p><?php esc_html_e ( 'The following sites are associated with this network:' , 'wp-multi-network' ) ; ?></p>
						<ul class="delete-sites">
							<?php foreach ( $ sites as $ site ) { ?>
								<li><?php echo esc_html ( $ site -> domain . $ site -> path ) ; ?></li>
								<?php } ?>
						</ul>
						<p>
							<input type="checkbox" name="override" id="override">
							<label for="override">
							<?php if ( wp_should_rescue_orphaned_sites ( ) ) { esc_html_e ( 'Rescue these sites' , 'wp-multi-network' ) ; } else { esc_html_e ( 'Delete these sites' , 'wp-multi-network' ) ; } ?>
							</label>
						</p>
					</div>
					<p>
						<?php printf ( /* translators: %s: network domain and path */ esc_html__ ( 'Are you sure you want to delete the entire "%s" network?' , 'wp-multi-network' ) , esc_html ( $ network -> domain . $ network -> path ) ) ; ?>
					</p>

					<?php } wp_nonce_field ( 'edit_network' , 'network_edit' ) ; submit_button ( esc_html__ ( 'Delete Network' , 'wp-multi-network' ) , 'primary' , 'delete' , false ) ; ?>

				<a class="button" href="<?php echo esc_url ( $ this -> admin_url ( ) ) ; ?>"><?php esc_html_e ( 'Cancel' , 'wp-multi-network' ) ; ?></a>
			</form>
		</div>

		<?php }
Renders the delete network page.

@since 2.0.0
Renders the delete network page .