-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.php
More file actions
29 lines (25 loc) · 882 Bytes
/
plugin.php
File metadata and controls
29 lines (25 loc) · 882 Bytes
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
<?php
/**
* Plugin Name: Plugin Name
* Plugin URI: https://conedevelopment.com/
* Description: Plugin Description
* Version: 1.0.0
* Author: Cone Development
* Author URI: https://conedevelopment.com
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: plugin-slug
* Domain Path: /languages/
* Requires at least: 6.0
* Tested up to: 6.4.3
* Requires PHP: 7.4
*/
// Pull in the autoloader
if (! class_exists(Cone\Plugin::class)) {
require_once __DIR__.'/autoload.php';
}
// Register the activation and the deactivation hooks
register_activation_hook(__FILE__, [Cone\Plugin::class, 'activate']);
register_deactivation_hook(__FILE__, [Cone\Plugin::class, 'deactivate']);
// Boot the plugin
add_action('plugins_loaded', [Cone\Plugin::class, 'boot']);