-
Notifications
You must be signed in to change notification settings - Fork 0
/
wilson-features.php
55 lines (45 loc) · 1.79 KB
/
wilson-features.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
<?php
/**
* @package EmployeesPlugin
*/
/*
* Plugin Name: Wilson Features
* Plugin URI: https://github.com/Wyllymk/wilson-features-plugin
* Description: Handle the basics with this plugin.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Wilson
* Author URI: https://wyllymk.github.io/newport/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Update URI: https://github.com/Wyllymk/wilson-features-plugin
* Text Domain: wilson-features
* Domain Path: /languages
*/
/*
* 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. You may NOT assume
* that you can use any other version of the GPL.
*
* 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.
*/
/* A security check to make sure that the file is not being accessed directly. */
defined('ABSPATH') or die('Hey you, gerarahia!');
/* Checking if the file exists and if it does, it will require it. */
if(file_exists(dirname(__FILE__). '/vendor/autoload.php')){
require_once dirname(__FILE__). '/vendor/autoload.php';
}
function activate_externally(){
Inc\Base\Activate::activate();
}
function deactivate_externally(){
Inc\Base\Deactivate::deactivate();
}
register_activation_hook(__FILE__, 'activate_externally');
register_deactivation_hook(__FILE__, 'deactivate_externally');
/* Checking if the class exists and if it does, it will register the services. */
if(class_exists('Inc\\Init')){
Inc\Init::register_services();
}