forked from hyyan/woo-poly-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.php
43 lines (37 loc) · 1.2 KB
/
__init__.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
<?php
/*
* Plugin Name: Hyyan WooCommerce Polylang Integration
* Plugin URI: https://github.com/hyyan/woo-poly-integration/
* Description: Integrates Woocommerce with Polylang
* Author: Hyyan Abo Fakher
* Author URI: https://github.com/hyyan
* Text Domain: woo-poly-integration
* Domain Path: /languages
* GitHub Plugin URI: hyyan/woo-poly-integration
* License: MIT License
* Version: 1.2.0
* Requires At Least: 4.7
* Tested Up To: 4.9.5
* WC requires at least: 3.0.0
* WC tested up to: 3.2.6
* Requires PHP: 5.3
*/
/**
* This file is part of the hyyan/woo-poly-integration plugin.
* (c) Hyyan Abo Fakher <[email protected]>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (!defined('ABSPATH')) {
exit('restricted access');
}
define('Hyyan_WPI_DIR', __FILE__);
define('Hyyan_WPI_URL', plugin_dir_url(__FILE__));
require_once ABSPATH . 'wp-admin/includes/plugin.php';
require_once __DIR__ . '/vendor/class.settings-api.php';
require_once __DIR__ . '/src/Hyyan/WPI/Autoloader.php';
/* register the autoloader */
new Hyyan\WPI\Autoloader(__DIR__ . '/src/');
/* bootstrap the plugin */
new Hyyan\WPI\Plugin();