This repository has been archived by the owner on Mar 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy path__init__.php
55 lines (45 loc) · 1.44 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
44
45
46
47
48
49
50
51
52
53
54
<?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.5.1
* Requires At Least: 5.4
* Tested Up To: 5.7.1
* WC requires at least: 4.0.0
* WC tested up to: 5.3.0
* Requires PHP: 7.0
*/
/**
* 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();
/*
* called when plugin is activated in settings, plugins
*/
function onActivate() {
update_option( 'wpi_wcpagecheck_passed', false );
update_option( 'hyyan-wpi-flash-messages', '' );
}
register_activation_hook( __FILE__, 'onActivate' );