-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwpcui.php
More file actions
41 lines (31 loc) · 1.1 KB
/
wpcui.php
File metadata and controls
41 lines (31 loc) · 1.1 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
<?php
/*
Plugin Name: Customizer UI
Plugin URI: https://ChrisPerko.net/WPCUI
Description: This plugin is designed to help developers quickly and easily create customizer fields for WordPress without needing to write any code. No more digging through the codex to find how to register a new control!
Version: 2.0.0
Author: Chris Perko
Author URI: https://ChrisPerko.net
License: GPL2
*/
defined('ABSPATH') or die("You have no power here!");
if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
require_once dirname(__FILE__) . '/vendor/autoload.php';
}
/**
* The code that runs during plugin activation
*/
function activateWpcuiPlugin() {
PerkoCustomizerUI\Base\Activate::activate();
}
register_activation_hook( __FILE__, 'activateWpcuiPlugin' );
/**
* The code that runs during plugin deactivation
*/
function deactivateWpcuiPlugin() {
PerkoCustomizerUI\Base\Deactivate::deactivate();
}
register_deactivation_hook( __FILE__, 'deactivateWpcuiPlugin' );
if (class_exists('PerkoCustomizerUI\\Init')) {
PerkoCustomizerUI\Init::registerServices();
}