# embed-privacy/1.10.7/inc/class-system.php

Embed Privacy, version 1.10.7. 29 lines.

- Page: https://pluginprobe.com/plugins/embed-privacy/1.10.7/code/inc/class-system.php
- Raw: https://pluginprobe.com/plugins/embed-privacy/1.10.7/raw/inc/class-system.php
- Modified: 2024-09-09T19:43:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/embed-privacy/1.10.7/code/inc/class-system.php#L10-L20`.

```php
<?php
namespace epiphyt\Embed_Privacy;

/**
 * System functionality.
 * 
 * @author	Epiphyt
 * @license	GPL2
 * @package	epiphyt\Embed_Privacy
 * @since	1.10.2
 */
final class System {
	/**
	 * Determines whether a plugin is active.
	 * 
	 * Basically a wrapper around core's is_plugin_active(), but with auto-loading.
	 * 
	 * @param	string	$plugin Path to the plugin file relative to the plugins directory
	 * @return	bool Whether the plugin is active
	 */
	public static function is_plugin_active( $plugin ) {
		if ( ! \function_exists( 'is_plugin_active' ) ) {
			include_once \ABSPATH . 'wp-admin/includes/plugin.php';
		}
		
		return \is_plugin_active( $plugin );
	}
}

```
