Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use better hooks to notify group members they were promoted #293

Closed
wants to merge 1 commit into from

Conversation

imath
Copy link
Member

@imath imath commented May 21, 2024

Hi @needle

Just checked, I believe we actually need to update BuddyPress and the BP REST API.

  • BuddyPress: it shouldn't use the current hooks as there can be situations where the hook is fired although the requested action failed.
  • BuddyPress groups_$action_member() function should be usable outside of the Web version using the BP REST API for instance. It's not currently the case and I suspect it to be the reason why we were directly using BP_Groups_Member->$action()
  • The BP REST API should absolutely use groups_$action_member() functions to be sure cache is cleared or group activities are deleted when it's needed. It's currently not the case. I'll soon submit a PR to the BP REST API GH repo.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/9158


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

@imath
Copy link
Member Author

imath commented May 25, 2024

Fixed in e667c79

@imath imath closed this May 25, 2024
@imath imath deleted the patch/9158 branch May 25, 2024 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant