| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin name: WP EXtra |
| 4 |
* Plugin URI: https://wordpress.org/plugins/wp-extra/ |
| 5 |
* Description: This is a simple and perfect tool to use as your website’s functionality plugin. Awesome !!! |
| 6 |
* Version: 8.7.1 |
| 7 |
* Requires at least: 6.8 |
| 8 |
* Requires PHP: 8.0 |
| 9 |
* Author: TienCOP |
| 10 |
* Author URI: https://wpvnteam.com |
| 11 |
* Text Domain: wp-extra |
| 12 |
* Domain Path: /languages |
| 13 |
* License: GPLv2 |
| 14 |
*/ |
| 15 |
|
| 16 |
namespace WPEXtra; |
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit; |
| 19 |
} |
| 20 |
|
| 21 |
define( 'WPEX_VERSION', '8.7.1' ); |
| 22 |
define( 'WPEX_FILE', __FILE__ ); |
| 23 |
define( 'WPEX_DIR', __DIR__ ); |
| 24 |
define( 'WPEX_URL', plugin_dir_url( __FILE__ ) ); |
| 25 |
|
| 26 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 27 |
|
| 28 |
if ( ! class_exists( '\WPVNTeam\WPSettings\WPSettings' ) ) { |
| 29 |
include_once __DIR__ . '/wp-settings/wp-settings.php'; |
| 30 |
} |
| 31 |
|
| 32 |
new Language; |
| 33 |
new WPEXtra; |
| 34 |
|
| 35 |
if ( is_admin() || wp_doing_ajax() ) { |
| 36 |
new Settings; |
| 37 |
if ( is_admin() ) { |
| 38 |
new Core; |
| 39 |
} |
| 40 |
} |
| 41 |
|