// If it's not active, then warn user and deactivate this add-on plugin
if ($is_active != '1') {
add_action( 'admin_notices', 'glmMembersPluginRequired' );
- deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'.php');
+ deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/index.php');
}
// Function to generate message regarding main GLM Member DB plugin version is not receint enought to run this add-on
$glmMembersDatabasePluginVersion = get_option('glmMembersDatabasePluginVersion');
if (version_compare($glmMembersDatabasePluginVersion, GLM_MEMBERS_CONTACTS_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION) < 0) {
add_action( 'admin_notices', 'glmMembersContactsMembersMinVerRequired');
- deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'.php');
+ deactivate_plugins('/'.GLM_MEMBERS_CONTACTS_PLUGIN_SLUG.'/index.php');
}
/*