2019-04-10 07:36:55 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Plugin Name: Woocommerce Events Manager
|
|
|
|
* Plugin URI: http://mage-people.com
|
|
|
|
* Description: A Complete Event Solution for WordPress by MagePeople..
|
2020-05-08 06:09:24 -04:00
|
|
|
* Version: 3.2.5
|
2019-04-10 07:36:55 -04:00
|
|
|
* Author: MagePeople Team
|
|
|
|
* Author URI: http://www.mage-people.com/
|
|
|
|
* Text Domain: mage-eventpress
|
|
|
|
* Domain Path: /languages/
|
2019-06-03 05:28:23 -04:00
|
|
|
*/
|
2019-04-10 07:36:55 -04:00
|
|
|
|
2020-02-05 07:47:07 -05:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
|
|
|
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
|
|
|
if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
2019-12-10 02:51:49 -05:00
|
|
|
|
2020-02-05 07:47:07 -05:00
|
|
|
require_once(dirname(__FILE__) . "/inc/mep_file_include.php");
|
2020-01-23 07:06:05 -05:00
|
|
|
|
2019-04-10 07:36:55 -04:00
|
|
|
}else{
|
|
|
|
function mep_admin_notice_wc_not_active() {
|
|
|
|
$class = 'notice notice-error';
|
|
|
|
printf(
|
|
|
|
'<div class="error" style="background:red; color:#fff;"><p>%s</p></div>',
|
|
|
|
__('You Must Install WooCommerce Plugin before activating WooCommerce Event Manager, Becuase It is dependent on Woocommerce Plugin')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
add_action( 'admin_notices', 'mep_admin_notice_wc_not_active' );
|
2020-04-28 06:37:33 -04:00
|
|
|
}
|