-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin-toggle.php
45 lines (40 loc) · 1.22 KB
/
plugin-toggle.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
<?php
/**
* Plugin Toggle
*
* @package PluginToggle
* @author Brady Vercher
* @copyright Copyright (c) 2016, Cedaro, LLC
* @license GPL-2.0+
*
* @wordpress-plugin
* Plugin Name: Plugin Toggle
* Plugin URI: https://wordpress.org/plugins/plugin-toggle/
* Description: Quickly toggle plugin activation status from the toolbar.
* Version: 1.3.1
* Author: Cedaro
* Author URI: https://www.cedaro.com/?utm_source=wordpress-plugin&utm_medium=link&utm_content=plugin-toggle-author-uri&utm_campaign=plugins
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: plugin-toggle
*/
/**
* Plugin directory URL.
*/
if ( ! defined( 'PLUGINTOGGLE_URL' ) ) {
define( 'PLUGINTOGGLE_URL', plugin_dir_url( __FILE__ ) );
}
/**
* Plugin directory path.
*/
if ( ! defined( 'PLUGINTOGGLE_DIR' ) ) {
define( 'PLUGINTOGGLE_DIR', plugin_dir_path( __FILE__ ) );
}
/**
* Include classes.
*/
require( PLUGINTOGGLE_DIR . 'includes/class-plugintoggle.php' );
require( PLUGINTOGGLE_DIR . 'includes/class-plugintoggle-plugin.php' );
require( PLUGINTOGGLE_DIR . 'includes/class-plugintoggle-toolbar.php' );
$plugintoggle = new PluginToggle();
add_action( 'init', array( $plugintoggle, 'load_plugin' ) );