forked from WPWale/bwp-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbwp-lms.php
56 lines (48 loc) · 1.27 KB
/
bwp-lms.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
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the
* plugin admin area. This file also includes all of the dependencies used by
* the plugin, registers the activation and deactivation functions, and defines
* a function that starts the plugin.
*
* @since 1.0.0
* @package BWP_LMS
*
* @wordpress-plugin
*
* Plugin Name: BaapWP LMS
* Description: The LMS that BaapWP uses internally
* Plugin URI:
* Version: 1.0.0
* Author: Saurabh Shukla
* Author URI: https://baapwp.me/
* Text Domain: bwp-lms
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) exit;
// assign current filename to variable to use in activation hook
$file = __FILE__;
/**
* Path to the plugin directory.
*
* @since 1.0.0
*/
define( 'BWP_LMS\PATH', trailingslashit( plugin_dir_path( $file ) ) );
/**
* Other application constants
*/
require_once \BWP_LMS\PATH . 'includes/constants.php';
/**
* The autoloader
*/
require_once \BWP_LMS\PATH . 'includes/autoloader.php';
/**
* The application core
*/
require_once \BWP_LMS\PATH . 'includes/lms-loader.php';
unset($file);