# depicter/1.3.2/vendor/averta/wordpress/src/Utility/Plugin.php

Depicter — Popup &amp; Slider Builder, version 1.3.2. 18 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.3.2/code/vendor/averta/wordpress/src/Utility/Plugin.php
- Raw: https://pluginprobe.com/plugins/depicter/1.3.2/raw/vendor/averta/wordpress/src/Utility/Plugin.php
- Modified: 2022-06-19T11:25:48+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/depicter/1.3.2/code/vendor/averta/wordpress/src/Utility/Plugin.php#L10-L20`.

```php
<?php
namespace Averta\WordPress\Utility;

class Plugin
{
    /**
     * Determines whether a plugin is active.
     *
     * @param string $plugin_basename Path to the plugin file relative to the plugins directory.
     *
     * @return mixed
     */
    public static function isActive( $plugin_basename ){
        include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
        return is_plugin_active( $plugin_basename );
    }
}

```
