# e2pdf/1.32.31/classes/helper/e2pdf-extension.php

E2Pdf – Export Pdf Tool for WordPress, version 1.32.31. 37 lines.

- Page: https://pluginprobe.com/plugins/e2pdf/1.32.31/code/classes/helper/e2pdf-extension.php
- Raw: https://pluginprobe.com/plugins/e2pdf/1.32.31/raw/classes/helper/e2pdf-extension.php
- Modified: 2026-06-16T16:01:32+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/e2pdf/1.32.31/code/classes/helper/e2pdf-extension.php#L10-L20`.

```php
<?php

/**
 * E2pdf Graph Helper
 * 
 * @copyright  Copyright 2017 https://e2pdf.com
 * @license    GPLv3
 * @version    1
 * @link       https://e2pdf.com
 * @since      1.01.02
 */
if (!defined('ABSPATH')) {
    die('Access denied.');
}

class Helper_E2pdf_Extension {

    public function is_plugin_active($plugin) {
        if (!function_exists('is_plugin_active')) {
            include_once ABSPATH . 'wp-admin/includes/plugin.php';
        }
        if (is_plugin_active($plugin)) {
            return true;
        }
        list($dir, $file) = explode('/', $plugin);
        $plugins = (array) get_option('active_plugins', array());
        if (is_multisite()) {
            $plugins = array_merge($plugins, array_keys((array) get_site_option('active_sitewide_plugins', array())));
        }
        if (!empty(preg_grep('/' . $file . '$/i', $plugins))) {
            return true;
        }
        return false;
    }

}

```
