BP User Activate hook not working properly. #5

Closed
tw2113 opened this Issue Jun 14, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@tw2113
Collaborator

tw2113 commented Jun 14, 2013

Based on the thread here, not much to go on:
http://wordpress.org/support/topic/badge-not-awarded-on-community-activity-activated-account?replies=2

Regardless, I was able to confirm that any badges tied to activating your BP account were not being properly triggered. I was able to narrow it down to the lack of user ID. The global wasn't working. I looked at the do_action() for bp_core_activated_user and it passes in the ID. However for the sake of keeping function amount down, we just loop over our hooks and invoke the same function without any parameters.

Not sure how we should handle this, unless we can find a global variable that is correct at the time of our add_action. Only other thought at the moment fetch the newest member from the user table at the time of the callback and use that for the ID.

@tw2113

This comment has been minimized.

Show comment Hide comment
@tw2113

tw2113 Jun 14, 2013

Collaborator

If all involved could review b177a4f, that'd be awesome. Best solution I could come up with right now.

Collaborator

tw2113 commented Jun 14, 2013

If all involved could review b177a4f, that'd be awesome. Best solution I could come up with right now.

@tw2113

This comment has been minimized.

Show comment Hide comment
@tw2113

tw2113 Mar 22, 2014

Collaborator

Fixed in 5cc9203

Collaborator

tw2113 commented Mar 22, 2014

Fixed in 5cc9203

@tw2113 tw2113 closed this Mar 22, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment