| Server IP : 121.121.20.254 / Your IP : 216.73.216.133 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/INVOICE/wp-content/plugins/pdf-embedder/src/Helpers/ |
Upload File : |
<?php
namespace PDFEmbedder\Helpers;
/**
* Helpful methods around the WordPress multisite functionality.
*
* @since 4.7.0
*/
class Multisite {
/**
* Check if the site is Multisite and the plugin is network activated.
*
* @since 4.7.0
*/
public static function is_network_activated(): bool {
if ( ! is_multisite() ) {
return false;
}
if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
require_once ABSPATH . '/wp-admin/includes/plugin.php';
}
return is_plugin_active_for_network( plugin_basename( PDFEMB_PLUGIN_FILE ) );
}
}