-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwp-addon-plugin.php
51 lines (37 loc) · 988 Bytes
/
wp-addon-plugin.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
<?php
/*
* Plugin Name: # WordPress Addon
* Plugin URL: https://rwsite.ru
* Description: Addon for WordPress;
* Version: 1.2.0
* Text Domain: wp-addon
* Domain Path: /languages
* Author: Aleksey Tikhomirov
* Author URI: https://rwsite.ru
*
* Tags: wordpress, wp-addon,
*
* Requires at least: 4.6
* Tested up to: 6.5.0
* Requires PHP: 7.4+
*/
defined( 'ABSPATH' ) || exit;
if( !defined('RW_LANG') ) {
define( 'RW_LANG', 'wp-addon' );
}
if ( ! defined( 'RW_PLUGIN_DIR' ) ) {
define( 'RW_PLUGIN_DIR', plugin_dir_path(__FILE__ ) );
}
if ( ! defined( 'RW_PLUGIN_URL' ) ) {
define( 'RW_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'RW_FILE' ) ) {
define( 'RW_FILE', __FILE__);
}
require_once 'wp-addon-settings.php';
require_once 'FrontWP.php';
require_once 'ControllerWP.php';
WP_Addon_Settings::getInstance();
FrontWP::getInstance();
require_once 'autoloader.php';
ControllerWP::getInstance()->options_loader();