expire-users
expire-users copied to clipboard
Remove expire date
Hi. i'm trying to remove the expire date on user by php (like setting "none" in the setting of a user)
for do this i rite something like this 👍
$expireUser = new Expire_User( $user->user_id); $expireUser->remove_expiry(); $expireUser->save_user();
but when the date is reach, the user keep the date in red... how i can do this ? thanks.
and thanks for you work on this plugin
Think we might need a method to clear_expiry() which also removes the _expire_user_expired value.
remove_expiry() just removes the expiry data but still keeps the user flagged as expired.