This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.php
47 lines (43 loc) · 1.54 KB
/
plugin.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
<?php
/**
* Wholesome Publishing
*
* Plugin Name: Wholesome Publishing
* Plugin URI: https://github.com/wholesomecode/wholesome-publishing
* Description: Wholesome Publishing: Editor comments for WordPress Gutenberg blocks and Draft block support.
* Version: 1.3.0
* Author: Wholesome Code <hello@wholesomecode.ltd>
* Author URI: https://wholesomecode.ltd
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wholesome-publishing
* Domain Path: /languages
*
* @package wholesome_code/wholesome_publishing
*/
namespace WholesomeCode\WholesomePublishing; // @codingStandardsIgnoreLine
/**
* Your main plugin.php file should include the plugin header comment
* and any plugin constants (such as const FILE = __FILE__ for easiest
* use of plugins_url() and related functions). It should load in the
* main namespace file, and handle the initial hooking into WordPress.
*
* @see https://engineering.hmn.md/standards/structure/
*/
const PLUGIN_PREFIX = 'wholesome_publishing';
const PLUGIN_SLUG = 'wholesome-publishing';
const PLUGIN_VERSION = '1.3.0';
const ROOT_DIR = __DIR__;
const ROOT_FILE = __FILE__;
require_once ROOT_DIR . '/inc/namespace.php';
/**
* Load Plugin
*
* Namespace Pattern
*
* File layout and namespacing pattern inspired by the
* Human Made engineering handbook.
*
* @see https://engineering.hmn.md/standards/style/php/#namespaced-file-naming
*/
add_action( 'plugins_loaded', __NAMESPACE__ . '\\setup' );