Suggestion: Pass $user_id to `bp_core_general_settings_after_save`
-
Hi everybody, I am integrating BuddyPress into a plugin of mine which also happens to sync user data to a third party forum software.
Thanks to BP’s hooks I have been able to:
1) register the user to the forum software with same credentials from BP register page
2) Update user email address when changed from BP > Settings > GeneralThe last thing I need to do is: 3) update user password when changed from BP > Settings > General
I thought this would be straightforward by using the
bp_core_general_settings_after_save
hook (/bp-settings/actions/general.php
line 237) but this hook doesn’t pass the WP user ID like the similar hook used to change the email address,bp_settings_email_changed
(same file, line 237).My request is to pass the
$user_id
variable to thebp_core_general_settings_after_save
hook so developer’s can easily refer to the WP user in custom requests. Hopefully simple enough.Thank you, and apologies for not making a pull request — I am not so familiar Git.
- You must be logged in to reply to this topic.