-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-lms.php
40 lines (32 loc) · 1.2 KB
/
custom-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
<?php
/*
* Plugin Name: The Points World LMS
* Plugin URI: https://khagendralama.com.np
* Description: Custom LMS for The Points World
* Version: 1.0.0
* Author: Khagendra Lama
* Author URI: https://khagendralama.com.np
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: thepointsworld
*/
defined( 'ABSPATH' ) || exit;
include_once WP_PLUGIN_DIR . '/custom-lms/inc/cpt.php';
include_once WP_PLUGIN_DIR . '/custom-lms/inc/woo-integrate.php';
include_once WP_PLUGIN_DIR . '/custom-lms/inc/customize-woo-menu-class.php';
// Constants
define('TEXTDOMAIN', 'thepointsworld');
define('LMS_VERSION', '1.0.0');
// Enqueue styles and scripts
function lms_admin_style_script() {
wp_enqueue_style('lms-css', plugin_dir_url(__FILE__) . '/assets/css/custom-style.css', array(), LMS_VERSION, 'all');
}
add_action('admin_enqueue_scripts', 'lms_admin_style_script');
register_activation_hook( __FILE__, 'tpw_activate_lms' );
function tpw_activate_lms() {
flush_rewrite_rules();
}
register_deactivation_hook( __FILE__, 'tpw_deactivate_lms' );
function tpw_deactivate_lms() {
flush_rewrite_rules();
}