// Make sure the current user has this capability
if (! current_user_can('activate_plugins')) {
- $this->addNotice("Interesting, you don't have permission to activate plugins.");
die();
}
// Try to get the first (should be only) entry for general settings.
$packageSettings = $this->editEntry( 1 );
- if ( $packageSettings === false ) {
-
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
- glmMembersAdmin::addNotice( '<b> /models/admin/management/packaging.php: Unable to load packaging management settings.', 'Alert' );
- }
-
- }
break;
}
break;
}
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
- glmMembersAdmin::addNotice($packages, 'DataBlock', 'Package Data');
- }
-
// If we have list entries - even if it's an empty list
$success = true;
$havePackages = false;
);
}
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
- glmMembersAdmin::addNotice($memberTypes, 'DataBlock', 'Member Types Data');
- }
-
if ($memberID) {
// Also save the mmeber ID in a WordPress "option" in case someone clicks the "Member" sub-menu
break;
}
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
- glmMembersAdmin::addNotice($packages, 'DataBlock', 'Package Data');
- }
-
// If we have list entries - even if it's an empty list
$success = true;
$havePackages = false;
);
}
- if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE) {
- glmMembersAdmin::addNotice($memberTypes, 'DataBlock', 'Member Types Data');
- }
-
// Compile template data
$templateData = array(
'filterPending' => $filterPending,