generated from syntatis/howdy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin-name.php
63 lines (54 loc) · 1.58 KB
/
plugin-name.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
/**
* Plugin bootstrap file.
*
* This file is read by WordPress to display the plugin's information in the admin area.
*
* @wordpress-plugin
* Plugin Name: Plugin Name
* Plugin URI: https://example.org
* Description: The plugin short description.
* Version: 0.1.0
* Requires at least: 5.8
* Requires PHP: 7.4
* Author: Author Name
* Author URI: https://example.org
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: plugin-name
* Domain Path: /inc/languages
*/
namespace PluginName;
use function defined;
// If this file is called directly, abort.
if (! defined('WPINC')) {
die;
}
/**
* Define the current version of the plugin.
*
* Following Semantic Versioning ({@link https://semver.org}) is encouraged.
* It provides a clear understanding of the impact of changes between
* versions.
*/
const PLUGIN_VERSION = '0.1.0';
/**
* Define the directory path to the plugin file.
*
* This constant provides a convenient reference to the plugin's directory path,
* useful for including or requiring files relative to this directory.
*/
const PLUGIN_DIR = __DIR__;
/**
* Define the path to the plugin file.
*
* This path can be used in various contexts, such as managing the activation
* and deactivation processes, loading the plugin text domain, adding action
* links, and more.
*/
const PLUGIN_FILE = __FILE__;
/**
* Load and initialize the WordPress plugin application.
*/
require PLUGIN_DIR . '/inc/bootstrap/app.php';