-
Notifications
You must be signed in to change notification settings - Fork 9
/
wc_frontend_manager.php
55 lines (43 loc) · 1.54 KB
/
wc_frontend_manager.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
55
<?php
/**
* Plugin Name: WooCommerce Frontend Manager
* Plugin URI: http://wclovers.com
* Description: WooCommerce is really Easy and Beautiful. We are here to make your life much more Easier and Peaceful.
* Author: WC Lovers
* Version: 2.4.3
* Author URI: http://wclovers.com
*
* Text Domain: wc-frontend-manager
* Domain Path: /lang/
*
*/
if(!defined('ABSPATH')) exit; // Exit if accessed directly
if ( ! class_exists( 'WCFM_Dependencies' ) )
require_once 'helpers/class-wcfm-dependencies.php';
require_once 'helpers/wcfm-core-functions.php';
require_once 'wc_frontend_manager_config.php';
if(!defined('WCFM_TOKEN')) exit;
if(!defined('WCFM_TEXT_DOMAIN')) exit;
if(!WCFM_Dependencies::woocommerce_plugin_active_check()) {
add_action( 'admin_notices', 'wcfm_woocommerce_inactive_notice' );
} else {
if(!WCFM_Dependencies::wcfmu_plugin_active_check()) {
add_action( 'admin_notices', 'wcfm_wcfmu_inactive_notice' );
}
if(!class_exists('WCFM')) {
require_once( 'core/class-wcfm.php' );
global $WCFM, $WCFM_Query;
$WCFM = new WCFM( __FILE__ );
$GLOBALS['WCFM'] = $WCFM;
// Init WCFM Query
require_once( 'core/class-wcfm-query.php' );
$WCFM_Query = new WCFM_Query();
$GLOBALS['WCFM_Query'] = $WCFM_Query;
// Activation Hooks
register_activation_hook( __FILE__, array( 'WCFM', 'activate_wcfm' ) );
register_activation_hook( __FILE__, 'flush_rewrite_rules' );
// Deactivation Hooks
register_deactivation_hook( __FILE__, array( 'WCFM', 'deactivate_wcfm' ) );
}
}
?>