Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BP User Activate hook not working properly. #5
Based on the thread here, not much to go on:
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.