if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
define('GLM_MEMBER_EVENTMANAGEMENT_MIN_VERSION_NOTE', "Members DB: $glmMembersDatabasePluginVersion, Event Management Requires: ".GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION);
add_action( 'admin_notices', 'glmMemberEventManagementMinVerRequired');
- deactivate_plugins('/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'.php');
+ deactivate_plugins('/'.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG.'/index.php');
}
/*
}
add_filter('glm-member-db-register-addon','glmMemberEventManagementRegisterAddOn', 10, 1);
-/*
- * Plugin Update Support - uses Gaslight Media update server
- */
-/* Not functional yet - Need to resolve JavaScript conflicts with this feature in other plugins
-require GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_LIB_PATH.'/opentools-update-checker/opentools-update-checker.php';
-${GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_PREFIX."updateChecker"} = new OpenToolsPluginUpdateChecker(
- 'http://www.gaslightmedia.com/update_server/?action=get_metadata&slug='.GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG,
- __FILE__,
- GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_SLUG
-);
-
-${GLM_MEMBER_EVENTMANAGEMENT_PLUGIN_PREFIX."updateChecker"}->declareCredentials(array(
- 'license_key' => __('License Key:')
-));
-*/
-
/*
*
* Activate and Deactivate hooks