-
Notifications
You must be signed in to change notification settings - Fork 0
/
wpstorm-toolkit.php
75 lines (67 loc) · 1.99 KB
/
wpstorm-toolkit.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
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* Plugin Name: Wpstorm Toolkit
* Plugin URI: https://wpstorm.ir/wpstorm-tk
* Description: This plugin adds Toolkit customization options to WordPress, including changing the date format, default font, and Elementor integration.
* Version: 1.0.1
* Author: Wpstorm Genius
* Author URI: https://wpstorm.ir
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: wpstorm-tk
*/
// this is just for test save file on nvim!
// and this is just to more test !!
if (!defined('ABSPATH'))
exit; // Exit if accessed directly.
}
if (!class_exists('Wpstorm_Toolkit')
{
/**
* The main class for the Wpstorm Persian Toolkit plugin.
*/
class Wpstorm_Toolkit
{
/**
* Plugin version.
*
* @var string
*/
const VERSION = '1.0.0';
/**
* Initialize the plugin.
*/
public function __construct()
{
$this->define_constants();
$this->load_dependencies();
}
/**
* Define plugin constants.
*/
private function define_constants()
{
define('WPSTORM_TK_FILE', __FILE__);
define('WPSTORM_TK_DIR', plugin_dir_path(WPSTORM_TK_FILE));
define('WPSTORM_TK_URL', plugin_dir_url(WPSTORM_TK_FILE));
define('WPSTORM_TK_VERSION', self::VERSION);
define('WPSTORM_TK_SLUG', 'WPSTORM_TK_settings');
}
/**
* Load plugin dependencies.
*/
private function load_dependencies()
{
// Include additional files or classes here if needed.
require_once WPSTORM_TK_DIR . 'classes/wpstorm-tk-settings.php';
require_once WPSTORM_TK_DIR . 'classes/wpstorm-tk-elementor.php';
}
}
}
/**
* Initialize the Wpstorm Persian Toolkit plugin.
*/
function WPSTORM_TK_init() {
$WPSTORM_TK_plugin = new Wpstorm_Toolkit();
}
add_action('plugins_loaded', 'WPSTORM_TK_init');