When expired flag the access level to 35 so they are not displayed and
moderated. Then when they renewal they goto 40 display not moderated.
$this->wpdb->query(
$this->wpdb->prepare(
"UPDATE " . GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX . "contacts
- SET contact_role = " . $activeRole . "
+ SET contact_role = " . $activeRole . ",
+ access = 40
WHERE ref_dest = (
SELECT ref_dest
FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts
}
$this->wpdb->query(
"UPDATE " . GLM_MEMBERS_CONTACTS_PLUGIN_DB_PREFIX. "contacts
- SET contact_role = " . $restrictedRole . "
+ SET contact_role = " . $restrictedRole . ",
+ access = 35
WHERE ref_dest IN (
SELECT ref_dest
FROM " . GLM_MEMBERS_BILLING_PLUGIN_DB_PREFIX . "accounts