private function can_delete( $network ) {

		// Bail if main network.
		if ( is_main_network( $network->id ) ) {
			return false;
		}

		// Bail if current network.
		if ( get_current_network_id() === $network->id ) {
			return false;
		}

		return current_user_can( 'delete_network', $network->id );
	}
private function can_delete( $network ) {

		// Bail if main network.
		if ( is_main_network( $network->id ) ) {
			return false;
		}

		// Bail if current network.
		if ( get_current_network_id() === $network->id ) {
			return false;
		}

		return current_user_can( 'delete_network', $network->id );
	}
private function can_delete ( $ network ) { // Bail if main network. if ( is_main_network ( $ network -> id ) ) { return false ; } // Bail if current network. if ( get_current_network_id ( ) === $ network -> id ) { return false ; } return current_user_can ( 'delete_network' , $ network -> id ) ; }
Checks whether the current user can delete a given network.

@since 2.0.0

@param WP_Network $network Network to check delete capabilities for.

@return bool True if the user can delete the network, false otherwise.
Checks whether the current user can delete a given network .