forked from themeum/tutor-divi-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutor-lms-divi-modules.php
51 lines (45 loc) · 1.28 KB
/
tutor-lms-divi-modules.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
<?php
/*
Plugin Name: Tutor LMS Divi Modules
Description: Easily design your courses and lessons on Divi builder with Tutor LMS
Version: 1.0.1
Author: Themeum
Author URI: https://themeum.com
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: tutor-lms-divi-modules
Domain Path: /languages
*/
defined('ABSPATH') || die();
define('DTLMS_VERSION', '1.0.1');
define('DTLMS_FILE__', __FILE__);
define('DTLMS_DIR_PATH', plugin_dir_path(DTLMS_FILE__));
define('DTLMS_DIR_URL', plugin_dir_url(DTLMS_FILE__));
define('DTLMS_ASSETS', trailingslashit(DTLMS_DIR_URL . 'assets'));
/**
* Environment
* PROD
* DEV
*/
define('DTLMS_ENV', 'PROD');
if ( ! function_exists( 'tudm_initialize_extension' ) ):
/**
* Creates the extension's main class instance.
*
* @since 1.0.0
*/
function tudm_initialize_extension() {
require_once plugin_dir_path( __FILE__ ) . 'includes/TutorDiviModules.php';
}
/**
* Load plugin text domain
* @since 1.0.0
*/
add_action( 'init', 'tutor_divi_textdomain' );
if( !function_exists( 'tutor_divi_textdomain' )) {
function tutor_divi_textdomain() {
load_plugin_textdomain( 'tutor-lms-divi-modules' , false, dirname( plugin_basename( __FILE__) .'/languages' ) );
}
}
add_action( 'divi_extensions_init', 'tudm_initialize_extension' );
endif;