WordPress at a glance
function is not described

WP_Recovery_Mode::is_network_plugin() protected WP 5.2.0

Checks whether the given extension a network activated plugin.

{} It's a method of the class: WP_Recovery_Mode{}

No Hooks.

Return

true/false. True if network plugin, false otherwise.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_network_plugin( $extension );
$extension(array) (required)
Extension data.

Changelog

Since 5.2.0 Introduced.

Code of WP_Recovery_Mode::is_network_plugin() WP 5.5.1

<?php
protected function is_network_plugin( $extension ) {
	if ( 'plugin' !== $extension['type'] ) {
		return false;
	}

	if ( ! is_multisite() ) {
		return false;
	}

	$network_plugins = wp_get_active_network_plugins();

	foreach ( $network_plugins as $plugin ) {
		if ( 0 === strpos( $plugin, $extension['slug'] . '/' ) ) {
			return true;
		}
	}

	return false;
}