forked from hyyan/woo-poly-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.php
38 lines (32 loc) · 1.06 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
<?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.0.1
*/
/**
* This file is part of the hyyan/woo-poly-integration plugin.
* (c) Hyyan Abo Fakher <hyyanaf@gmail.com>.
*
* 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();