-
Notifications
You must be signed in to change notification settings - Fork 3
/
wpshop.php
47 lines (39 loc) · 1.26 KB
/
wpshop.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
<?php
/**
* Plugin Name: WPshop 2
* Plugin URI: https://wpshop.fr/
* Description: Simple, fast, efficient it will transform your WordPress into an internet sales site
* Version: 2.5.0
* Author: Eoxia <[email protected]>
* Author URI: http://www.eoxia.com/
* License: GPLv3
* License URI: https://spdx.org/licenses/GPL-3.0-or-later.html
* Domain Path: /core/assets/languages
* Text Domain: wpshop
*
* @package WPshop
*/
namespace wpshop;
use eoxia\Init_Util;
defined( 'ABSPATH' ) || exit;
DEFINE( 'PLUGIN_WPSHOP_PATH', realpath( plugin_dir_path( __FILE__ ) ) . '/' );
DEFINE( 'PLUGIN_WPSHOP_URL', plugins_url( basename( __DIR__ ) ) . '/' );
DEFINE( 'PLUGIN_WPSHOP_DIR', basename( __DIR__ ) );
DEFINE( 'PLUGIN_WPSHOP_DEV_MODE', false );
if ( ! PLUGIN_WPSHOP_DEV_MODE ) {
require_once 'core/external/eo-framework/eo-framework.php';
}
// Include composer component.
require_once 'vendor/autoload.php';
// Boot your plugin.
Init_Util::g()->exec( PLUGIN_WPSHOP_PATH, basename( __FILE__, '.php' ) );
add_filter('site_transient_update_plugins',
function ($value) {
if (!empty($value->checked)) {
if ( $value->checked[plugin_basename(__FILE__)] <= "1.6.4" ) {
unset( $value->response[plugin_basename(__FILE__)] );
}
}
return $value;
}
);