-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpexelle-learndash.php
More file actions
43 lines (38 loc) · 1.54 KB
/
pexelle-learndash.php
File metadata and controls
43 lines (38 loc) · 1.54 KB
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
<?php
/**
* Plugin Name: Pexelle for LearnDash
* Plugin URI: https://pexelle.com/learndash-plugin
* Description: Connect LearnDash with the Pexelle application infrastructure through course QR scanning. With this plugin, you can seamlessly transfer your certificates and courses to Pexelle.
* Version: 1.5.2
* Author: Pexelle
* Author URI: https://pexelle.com
* Requires at least: 6.0
* Requires PHP: 7.4
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: pexelle-for-learndash
* Domain Path: /languages
*/
if (!defined('ABSPATH')) { exit; }
define('PSL_PLUGIN_FILE', __FILE__);
define('PSL_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('PSL_PLUGIN_URL', plugin_dir_url(__FILE__));
define('PSL_VERSION', '1.5.2');
require_once PSL_PLUGIN_DIR . 'inc/class-psl-plugin.php';
require_once PSL_PLUGIN_DIR . 'inc/class-psl-admin.php';
require_once PSL_PLUGIN_DIR . 'inc/class-psl-frontend.php';
require_once PSL_PLUGIN_DIR . 'inc/class-psl-magic-login.php';
require_once PSL_PLUGIN_DIR . 'inc/class-psl-export.php';
add_action('plugins_loaded', static function () {
if (!class_exists('SFWD_LMS')) {
add_action('admin_notices', function () {
echo '<div class="notice notice-error"><p><strong>Pexelle for LearnDash:</strong> LearnDash not detected. Please activate LearnDash.</p></div>';
});
return;
}
\PSL\Psl_Plugin::init();
\PSL\Psl_Admin::init();
\PSL\Psl_Frontend::init();
\PSL\Psl_Magic_Login::init();
\PSL\Psl_Export::init();
});