-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoein-dictionary-free.php
45 lines (38 loc) · 1.06 KB
/
moein-dictionary-free.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
<?php
/*
Plugin Name: Moein Dictionary(free)
Description: Moein Persian dictionary(free version)
Version: 1.5.1
Author: ham3da
Plugin URI: https://wordpress.org/plugins/moein-dictionary-free
Author URI: https://ham3da.ir
Text Domain: mdict
Domain Path: /lang
Requires PHP: 7.2
Code: 3a0b1eec81400c2c0730578392ca53f6
*/
if (!defined('ABSPATH'))
{
die("Access denied!");
}
define('MDC_PLUGIN_VERSION', '1.5.1');
define('MDC_PLUGIN_FILE', __FILE__);
define('MDC_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('MDC_PLUGIN_URL', plugin_dir_url(__FILE__));
define('MDC_HAM3DA', 0);
add_action('plugins_loaded', function () {
load_plugin_textdomain('mdict', false, basename(dirname(__FILE__)) . '/lang');
});
require_once MDC_PLUGIN_DIR . 'inc/functions.php';
require_once MDC_PLUGIN_DIR . 'inc/install.php';
$args = array(
'inc/search-tool',
'inc/ajax',
'inc/shortcodes/searchbox',
'inc/admin/dashboard',
'inc/admin/words-list',
'inc/admin/add-word',
'inc/admin/settings',
'inc/admin/import-data',
);
mdict_autoload($args);