forked from Automattic/sensei
-
Notifications
You must be signed in to change notification settings - Fork 0
/
woothemes-sensei.php
74 lines (61 loc) · 1.98 KB
/
woothemes-sensei.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
68
69
70
71
72
<?php
/*
Plugin Name: Sensei
Plugin URI: http://www.woothemes.com/products/sensei/
Description: A course management plugin that offers the smoothest platform for helping you teach anything.
Version: 1.9.13
Author: WooThemes
Author URI: http://www.woothemes.com/
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Requires at least: 4.1
Tested up to: 4.7.3
Text Domain: woothemes-sensei
Domain path: /lang/
*/
/* Copyright 2013 WooThemes (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
require_once( 'includes/class-sensei-bootstrap.php' );
Sensei_Bootstrap::get_instance()->bootstrap();
/**
* Returns the global Sensei Instance.
*
* @since 1.8.0
*/
function Sensei() {
return Sensei_Main::instance( array( 'version' => '1.9.13' ) );
}
//backwards compatibility
global $woothemes_sensei;
$woothemes_sensei = Sensei();
/**
* Plugin updates
* @since 1.0.1
*/
woothemes_queue_update( plugin_basename( __FILE__ ), 'bad2a02a063555b7e2bee59924690763', 152116 );
/**
* Sensei Activation Hook registration
* @since 1.8.0
*/
register_activation_hook( __FILE__, 'activate_sensei' );
/**
* Activate_sensei
*
* All the activation checks needed to ensure Sensei is ready for use
* @since 1.8.0
*/
function activate_sensei() {
Sensei()->activate();
}