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

Notify User via Email when Blocked/Unblocked #14

Open
jdmdigital opened this issue Jun 13, 2018 · 1 comment
Open

Notify User via Email when Blocked/Unblocked #14

jdmdigital opened this issue Jun 13, 2018 · 1 comment

Comments

@jdmdigital
Copy link

I love that you’re preventing Buddypress from sending email notifications to blocked users, but I might suggest creating two new Buddypress “scenarios” so admins can use Buddypress’ native email functionality to notify the user that they’ve been blocked and, perhaps, for how long. Another would be for when a user is subsequently unblocked (manually or automatically).

Obviously, these two email scenarios would need to be allowed even while a user is blocked.

Buddypress already allows themes and plugins to add email scenarios (documentation link coming soon) which means all we would have to do is hook into that and provide a callback (i.e. “on block, User Blocked scenario fires” and vice versa).

Might fork your project and give it a go myself. No promises. Submitting this issue purely to document and as a (gentle) suggestion for enhancement.

@jdmdigital
Copy link
Author

I was calling them “scenarios.” Buddypress calls them “Situations.” Anywho... Documentation links:

https://codex.buddypress.org/emails/#edit-email
https://codex.buddypress.org/emails/custom-emails/ (Better)

No specific tutorial out there I can find.

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

No branches or pull requests

1 participant