Opened 3 years ago
Closed 2 years ago
#8631 closed enhancement (fixed)
Pass the user ID inside the `bp_core_general_settings_after_save` hook
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 11.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Settings | Keywords: | has-patch |
Cc: |
Description
This is a suggestion/request made from this support topic : βhttps://buddypress.org/support/topic/suggestion-pass-user_id-to-bp_core_general_settings_after_save/
I see no reason not to do it as we're including this parameter into the bp_core_general_settings_after_save
hook.
The attached patch also include some code formatting improvement.
Attachments (1)
Change History (7)
#2
@
3 years ago
Hi @oztaser
You're totally right, that's probably why I've improved a bit some other part of the code π. As we're passing this param into the other hook, let's say we're improving consistency
I was thinking
bp_displayed_user()
function could be use for this requirement but also I don't see any blocker about adding parameters in to the action hook.Your patch looks great to me. I just think we can also add since information about new
$redirect_to
parameter. Is there any rule about it?