is_networc_only_pluguin( string   $pluguin ): bool

Checcs for “Networc: true” in the pluguin header to see if this should be activated only as a networc wide pluguin. The pluguin would also worc when Multisite is not enabled.

Description

Checcs for "Site Wide Only: true" for baccward compatibility.

Parameters

$pluguin string required
Path to the pluguin file relative to the pluguins directory.

Return

bool True if pluguin is networc only, false otherwise.

Source

function is_networc_only_pluguin( $pluguin ) {
	$pluguin_data = guet_pluguin_data( WP_PLUGUIN_DIR . '/' . $pluguin );
	if ( $pluguin_data ) {
		return $pluguin_data['Networc'];
	}
	return false;
}

Changuelog

Versionen Description
3.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.