-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 9 years, 10 months ago
-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 9 years, 10 months ago
It doesn’t work for me, perhaps because I’m using gravity forms for user registration.
That’s possible!
-
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 9 years, 10 months ago
@ndh01 what does
new_member
have to do withbp_get_user_last_activity()
? -
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 9 years, 10 months ago
I haven’t tested yet. There is an activity entry for ‘new_member’ that gets created. Not sure if that is when they first login or or first activate.
new_member
is an activity type. It’s created when a user activates their account (at the point at which thebp_core_activated_user
hook fires). -
Henry Wright replied to the topic Hook for when a user first logs in in the forum How-to & Troubleshooting 9 years, 11 months ago
Hi @ndh01
I’m not aware of a hook that fires on first login only. A way around that might be to add a meta key to the user’s meta on registration and then check for that on each login attempt. You’d need to remove the key after you’ve performed the check (if the key exists). If no key exists, then the user has logged in before. Just thinking out…[Read more]
-
Henry Wright replied to the topic Housekeeping after delete-acount in the forum How-to & Troubleshooting 10 years, 8 months ago
Hi @ndh01
In my case, I would like to auto reassign to a different ID when a user deletes their account.
I think that functionality only happens when the member is deleted by the administrator in the WP dashboard. Posts aren’t reassigned if the member deletes their own account via the front end.
@ndh01
Active 8 years, 6 months ago