-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtws-setting-framework.php
55 lines (49 loc) · 1.8 KB
/
tws-setting-framework.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
<?php
/**
* Plugin Name: The Web Solver Setting Framework
* Plugin URI: https://github.com/TheWebSolver/tws-setting-framework
* Description: WordPress Settings (Options) API framework
* Version: 2.1
* Author: Shesh Ghimire
* Author URI: https://www.linkedin.com/in/sheshgh/
* Requires at least: 5.3
* Requires PHP: 7.0
* Text Domain: tws-setting
* License: GNU General Public License v3.0 (or later)
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
*
* @package TheWebSolver\Core\Setting_Framework
*
* -----------------------------------
* DEVELOPED-MAINTAINED-SUPPPORTED BY
* -----------------------------------
* ███║ ███╗ ████████████████
* ███║ ███║ ═════════██████╗
* ███║ ███║ ╔══█████═╝
* ████████████║ ╚═█████
* ███║═════███║ █████╗
* ███║ ███║ █████═╝
* ███║ ███║ ████████████████╗
* ╚═╝ ╚═╝ ═══════════════╝
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
use TheWebSolver\Core\Setting\Plugin;
if ( ! defined( 'HZFEX_SETTING_FILE' ) ) {
define( 'HZFEX_SETTING_FILE', __FILE__ );
}
require_once __DIR__ . '/Includes/Plugin.php';
if ( ! function_exists( 'tws_setting' ) ) {
/**
* Main function to instantiate HZFEX_Setting_Framework class.
*
* @return Plugin
*
* @since 2.0
*/
function tws_setting(): Plugin {
return Plugin::boot( __FILE__ );
}
}
// Initializes the plugin.
tws_setting();