-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathduilo-plugin.php
More file actions
38 lines (30 loc) · 1.01 KB
/
duilo-plugin.php
File metadata and controls
38 lines (30 loc) · 1.01 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
<?php
/**
* @package DuiloFramework
*/
/**
* Plugin Name: Duilo Framework
* Plugin URI: https://jdevm.com/duilo-ns-integration
* Description: This is a custom plugin built to integrate Netsuite with Woocommerce. It's a custom netsuite integration.
* Version: 1.0.0
* Author: Jean Manzo
* Author URI: https://jdevm.com
* License: GPLv2 or later
* Text Domain: duilo_plugin
*/
defined( 'ABSPATH' ) or die( 'Hey, you can\'t access this file, you silly human!' );
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php') ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
define( 'DUILO_PLUGIN_SLUG', plugin_basename( dirname( __FILE__ ) ) );
function duilo_activate_plugin() {
Inc\Base\Activate::activate();
}
register_activation_hook( __FILE__, 'duilo_activate_plugin' );
function duilo_deactivate_plugin() {
Inc\Base\Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'duilo_deactivate_plugin' );
if ( class_exists( 'Inc\\Init' ) ) {
Inc\Init::register_services();
}