-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsyntatis-feature-flipper.php
63 lines (54 loc) · 1.67 KB
/
syntatis-feature-flipper.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: Feature Flipper
* Plugin URI: https://github.com/syntatis/wp-feature-flipper
* Description: Easily switch some features in WordPress, on and off
* Version: 1.8.1
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Thoriq Firdaus
* Author URI: https://github.com/tfirdaus
* License: GPL-3.0+
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: syntatis-feature-flipper
* Domain Path: /inc/languages
*/
namespace Syntatis\FeatureFlipper;
use function defined;
// If this file is called directly, abort.
if (! defined('ABSPATH')) {
exit;
}
/**
* 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 = '1.8.1';
/**
* 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';