-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdf-wc-restrict-content-divi-module.php
36 lines (30 loc) · 1.19 KB
/
df-wc-restrict-content-divi-module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Plugin Name: WC - Restrict Content Divi Module
* Plugin URI: https://www.diviframework.com
* Description: Divi Module for WooCommerce Memberships Content Restriction.
* Author: Divi Framework
* Author URI: https://www.diviframework.com
* Text Domain: df-wc-restrict-content-divi-module
* Domain Path: /languages
* Version: 1.1.2
*
* @package
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
define('DF_RESTRICT_CONTENT_VERSION', '1.1.2');
define('DF_RESTRICT_CONTENT_DIR', __DIR__);
define('DF_RESTRICT_CONTENT_URL', plugins_url('/' . basename(__DIR__)));
require_once DF_RESTRICT_CONTENT_DIR . '/vendor/autoload.php';
$container = new \DF\DF_RESTRICT_CONTENT\Container;
$container['plugin_name'] = 'WC - Restrict Content Divi Module';
$container['plugin_version'] = DF_RESTRICT_CONTENT_VERSION;
$container['plugin_file'] = __FILE__;
$container['plugin_dir'] = DF_RESTRICT_CONTENT_DIR;
$container['plugin_url'] = DF_RESTRICT_CONTENT_URL;
$container['plugin_slug'] = 'df-wc-restrict-content-divi-module';
// activation hook.
register_activation_hook(__FILE__, array($container['activation'], 'install'));
$container->run();