-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreal-membership.php
More file actions
38 lines (31 loc) · 877 Bytes
/
real-membership.php
File metadata and controls
38 lines (31 loc) · 877 Bytes
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
37
38
<?php
/**
* Plugin Name: Real Membership
* Plugin URI: https://realcodelab.com
* Description: Allow users to subscribe to membership plans
* Author: RealCodeLab
* Author URI: https://realcodelab.com
* Version: 0.1.0
* Text Domain: real-membership
* Domain Path: /languages
*/
// Prevent direct access.
if ( ! defined( 'ABSPATH' ) ) {
return;
}
// If already loaded, skip
if ( defined( 'REAL_MEMBERSHIP_LOADED' ) ) {
return;
}
require_once 'defines.php';
require_once 'vendor/autoload.php';
require_once 'includes.php';
// If not loaded, skip
if ( ! defined( 'REAL_MEMBERSHIP_LOADED' ) ) {
return;
}
$container = \Real_Membership\Factory::get_container();
$plugin = new \Real_Membership\Plugin( $container );
register_activation_hook( __FILE__, [ $plugin, 'activate' ] );
register_deactivation_hook( __FILE__, [ $plugin, 'deactivate' ] );
$plugin->init();