remove levels with php code
-
hi there. I found a way with user expiration but I could not remove the level. how can I remove the all levels with php code?
this is my code:
$current_date = date("Y-m-d"); $date_to_compare = date("Y-m-d",time()+86400); //1 day later if (strtotime($date_to_compare) > strtotime($current_date)) { foreach ($user_levels as $level => $value) { $user->remove_level($level); echo "too late "; } } }
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘remove levels with php code’ is closed to new replies.