-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
minnpost-membership.php
57 lines (49 loc) · 1.16 KB
/
minnpost-membership.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
Plugin Name: MinnPost Membership
Description: This plugin manages various parts of MinnPost's membership UX.
Version: 0.3.11
Author: Jonathan Stegall
Author URI: https://code.minnpost.com
Text Domain: minnpost-membership
License: GPL2+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
/* Exit if accessed directly */
if ( ! defined( 'ABSPATH' ) ) {
return;
}
/**
* The full path to the main file of this plugin
*
* This can later be passed to functions such as
* plugin_dir_path(), plugins_url() and plugin_basename()
* to retrieve information about plugin paths
*
* @since 0.2.0
* @var string
*/
define( 'MINNPOST_MEMBERSHIP_FILE', __FILE__ );
/**
* The plugin's current version
*
* @since 0.2.0
* @var string
*/
define( 'MINNPOST_MEMBERSHIP_VERSION', '0.3.11' );
// Load the autoloader.
require_once 'lib/autoloader.php';
/**
* Retrieve the instance of the main plugin class
*
* @since 0.2.0
* @return MinnPost_Membership
*/
function minnpost_membership() {
static $plugin;
if ( is_null( $plugin ) ) {
$plugin = new MinnPost_Membership( MINNPOST_MEMBERSHIP_VERSION, __FILE__ );
}
return $plugin;
}
minnpost_membership()->init();