-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpersian-framework.php
More file actions
45 lines (40 loc) · 1.33 KB
/
Copy pathpersian-framework.php
File metadata and controls
45 lines (40 loc) · 1.33 KB
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
<?php
/**
* Plugin Name: Persian Framework
* Plugin URI: https://parswp.ir/persian-framework
* Description: Advanced WordPress Options Framework with 40+ professional fields
* Version: 1.0.2
* Author: Parswp.ir
* Author URI: https://parswp.ir
* License: GPL v2 or later
* Text Domain: persian-framework
* Domain Path: /languages
* Requires PHP: 7.4
* Requires WP: 5.0
*/
if (!defined('ABSPATH')) {
exit;
}
// ========================================
// Constants
// ========================================
define('PERSIAN_FRAMEWORK_VERSION', '1.0.2');
define('PERSIAN_FRAMEWORK_FILE', __FILE__);
define('PERSIAN_FRAMEWORK_PATH', plugin_dir_path(__FILE__));
define('PERSIAN_FRAMEWORK_URL', plugin_dir_url(__FILE__));
define('PERSIAN_FRAMEWORK_OPTION', 'persian_framework_options');
define('PERSIAN_FRAMEWORK_THEME', 'persian_framework_theme');
// ========================================
// Load Main Class
// ========================================
require_once PERSIAN_FRAMEWORK_PATH . 'includes/class-persian-framework.php';
// ========================================
// Helper Function
// ========================================
function persian_framework() {
return PersianFramework::get_instance();
}
// ========================================
// Run Plugin
// ========================================
persian_framework();