-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcobolt.php
More file actions
64 lines (56 loc) · 1.79 KB
/
Copy pathcobolt.php
File metadata and controls
64 lines (56 loc) · 1.79 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
63
64
<?php
/**
* Development Suite bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin. (credit: WordPress Plugin Boilerplate)
*
* @link https://ikehunter.com
* @since 0.1.0
* @package Cobolt
*
* @wordpress-plugin
* Plugin Name: Cobolt Suite
* Plugin URI: https://coboltsuite.com/
* Description: Provides a suite of tools to aid and enhance WordPress development.
* Version: 0.1.0 (Beta)
* Author: IkeHunter Web Development
* Author URI: https://ikehunter.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: cobolt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'COBOLT_VERSION', '1.0.0' );
define( 'COBOLT_PLUGIN_NAME', 'Development Suite for WordPress' );
define( 'COBOLT_PLUGIN_SLUG', 'cobolt' );
define( 'COBOLT_DIR', plugin_dir_path( __FILE__ ) );
/**
* The code that runs during plugin activation.
*/
function activate_cobolt() {
require_once plugin_dir_path( __FILE__ ) . 'includes/cobolt-activator.php';
}
/**
* The code that runs during plugin deactivation.
*/
function deactivate_cobolt() {
require_once plugin_dir_path( __FILE__ ) . 'includes/cobolt-deactivator.php';
}
register_activation_hook( __FILE__, 'activate_cobolt' );
register_deactivation_hook( __FILE__, 'deactivate_cobolt' );
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function run_cobolt() {
require COBOLT_DIR . './includes/cobolt.php';
}
run_cobolt();