Opened 5 years ago
Closed 4 years ago
#8173 closed enhancement (fixed)
Hook to filter list of e-mails
Reported by: | espellcaste | Owned by: | espellcaste |
---|---|---|---|
Milestone: | 7.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Emails | Keywords: | good-first-bug has-patch commit |
Cc: |
Description
Suggestion: Allow devs to hook into the bp_email_get_schema
so that they can add or remove emails.
One can add emails via the bp_core_install_emails
hook, but it is not that easy to remove it. Forcing the developer to come up with creative ways to accomplish this task.
Also, a lot of code is duplicated in the bp_core_install_emails
function to create new emails. So the hook on the schema function would avoid this code duplication.
Attachments (1)
Change History (11)
This ticket was mentioned in Slack in #buddypress by espellcaste. View the logs.
5 years ago
#3
@
4 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 7.0.0
- Version 5.0.0 deleted
#7
@
4 years ago
- Keywords needs-unit-tests added
I believe we should add unit tests to make sure we don't break anything ;)
I'm claiming this one!