-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin-developer-boilerplate.php
More file actions
62 lines (55 loc) · 1.55 KB
/
plugin-developer-boilerplate.php
File metadata and controls
62 lines (55 loc) · 1.55 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
*
* Plugin Name: Plugin Developer Boilerplate
* Plugin URI: #
* Description: Plugin Developer Boilerplate Description
* Version: 1.0.0
* Requires at least: 5.6.2
* Requires PHP: 7.2
* Author: Array é Vida
* Author URI: https://arrayevida.com.br/
* Developer: Heitor Sousa
* Developer URI: https://github.com/heitorspedroso
* Domain Path: /languages
* Text Domain: plugin-developer-boilerplate
* *
* Woo: 12345:12345
* WC requires at least: 4.8.0
* WC tested up to: 5.0.0
*
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* @package 'plugin-developer-boilerplate'
*/
use PluginDeveloperBoilerplate\Activate;
use PluginDeveloperBoilerplate\Deactivate;
use PluginDeveloperBoilerplate\PluginDeveloperBoilerplate;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
if ( ! class_exists( 'Activate' ) ) :
/**
* Activate function.
*/
function activate_plugin_developer_boilerplate() {
Activate::activate();
}
register_activation_hook( __FILE__, 'activate_plugin_developer_boilerplate' );
endif;
if ( ! class_exists( 'Deactivate' ) ) :
/**
* Deactivate function.
*/
function deactivate_plugin_developer_boilerplate() {
Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'deactivate_plugin_developer_boilerplate' );
endif;
if ( ! class_exists( 'PluginDeveloperBoilerplate' ) ) :
PluginDeveloperBoilerplate::instance();
endif;