buddyboss-platform
buddyboss-platform copied to clipboard
PROD-948 Fix - Group message email notification is not sending when the organizer has an Instructor role
All Submissions:
- [x] Have you followed the Pull Requests Guidelines?
- [x] Does your code follow the WordPress' Coding Standards?
- [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
Changes proposed in this Pull Request:
Fixes #937
How to test the changes in this Pull Request:
- Make sure that you have BuddyBoss Platform, LearnDash LMS, and Instructor Role plugins installed and activated.
- Enable BuddyBoss > Settings > Groups > Group Messages.
- Create a user with Instructor Role.
- In the BuddyBoss platform, create a Social Group and set Instructor user as an Organizer and add some members.
- Log in as an Instructor user and try to send a group message. Groups > Send Messages
Proof Screenshots or Video
Other information:
- [x] Have you added an explanation of what your changes do and why you'd like us to include them?
- [x] Have you written new tests for your changes, as applicable?
- [x] Have you successfully run tests with your changes locally?
Changelog entry
Added exclusion in bp-email post type as it causes for email not to work if sender has instructor role from instructor-role plugin