-
Notifications
You must be signed in to change notification settings - Fork 135
/
lifterlms.php
67 lines (60 loc) · 1.73 KB
/
lifterlms.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
58
59
60
61
62
63
64
65
66
67
<?php
/**
* Main LifterLMS plugin file
*
* @package LifterLMS/Main
*
* @since 1.0.0
* @version 5.3.0
*
* Plugin Name: LifterLMS
* Plugin URI: https://lifterlms.com/
* Description: Complete e-learning platform to sell online courses, protect lessons, offer memberships, and quiz students. WP Learning Management System.
* Version: 7.8.3
* Author: LifterLMS
* Author URI: https://lifterlms.com/
* Text Domain: lifterlms
* Domain Path: /languages
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Requires at least: 5.9
* Tested up to: 6.7
* Requires PHP: 7.4
*
* * * * * * * * * * * * * * * * * * * * * *
* *
* Reporting a Security Vulnerability *
* *
* Please disclose any security issues or *
* vulnerabilities to team@lifterlms.com *
* *
* See our full Security Policy at *
* https://lifterlms.com/security-policy *
* *
* * * * * * * * * * * * * * * * * * * * * *
*/
defined( 'ABSPATH' ) || exit;
if ( ! defined( 'LLMS_PLUGIN_FILE' ) ) {
define( 'LLMS_PLUGIN_FILE', __FILE__ );
}
if ( ! defined( 'LLMS_PLUGIN_DIR' ) ) {
define( 'LLMS_PLUGIN_DIR', __DIR__ . '/' );
}
// Autoloader.
require_once LLMS_PLUGIN_DIR . 'vendor/autoload.php';
require_once LLMS_PLUGIN_DIR . 'includes/class-llms-loader.php';
if ( ! class_exists( 'LifterLMS' ) ) {
require_once LLMS_PLUGIN_DIR . 'class-lifterlms.php';
}
register_activation_hook( __FILE__, array( 'LLMS_Install', 'install' ) );
/**
* Returns the main instance of LifterLMS
*
* @since 4.0.0
*
* @return LifterLMS
*/
function llms() {
return LifterLMS::instance();
}
return llms();