BuddyPress 2.5 Will Add Customizable Emails via a New BP Email API

BuddyPress 2.5 beta 1 was released this week with a list of new features and improvements to test, including a brand new BP Email API. The new API allows users to easily customize any email that BuddyPress sends, without having to leave the admin or write any code.

email-customizer

The ticket to overhaul BuddyPress emails was opened six months ago and has received more than 100 replies with feedback and patches from multiple contributors. BuddyPress lead developer Paul Gibbs spearheaded this initiative and summarized the outcome when introducing the new API on his blog:

In a nutshell, we moved emails into a custom post type (BuddyPress’ first!) with a supporting taxonomy (BuddyPress’ second!), devised a HTML email template with Customizer integration, and wrote a new API to manage how we represent emails internally and how we send them (goodbye, wp_mail!).

Gibbs has been writing plugins for the platform for the past seven years. He started with Welcome Pack, a plugin that allowed community admins to customize welcome emails to enhance the new user experience. His experience building and maintaining the now defunct Welcome Pack led him to work on improving BuddyPress’ core email handling.

“With retrospect, adding customizable emails to Welcome Pack is what killed my interest in that plugin,” Gibbs said. “It was such a lengthy, painful slog to get the customization working and nicely implemented (I picked the wrong approach), that when it was finally done, so was I!”

Gibbs’ work on this ticket makes emails in BuddyPress 2.5 much easier to edit than they ever were in his Welcome Pack plugin. The new Emails custom post type allows administrators to edit the content of the plugin’s 16 default emails directly in the admin. The email template can also be edited in the customizer at Appearance >> Emails with controls to change the header, body, and footer background colors, and text size/colors.

The new email capabilities allow BuddyPress community managers to personalize their sites’ communication without having a lot of technical knowledge. It’s a significant improvement over the generic stock emails previously sent by the plugin.

According to the project roadmap, the 2.5 milestone is now 96% complete and the official release is expected in three weeks.

3

3 responses to “BuddyPress 2.5 Will Add Customizable Emails via a New BP Email API”

  1. @Sebastien, lets see what they say:

    https://core.trac.wordpress.org/ticket/18493#comment:33

    Technically, I think you have a great idea and it would be wonderful to have better control of the emails sent from your site.

    BuddyPress is a particular use case, as you are sending email to your members who have signed up, so adding these features there may have been more compelling. Also, as the article says, Paul Gibbs had experience trying to implement something similar.

  2. I like how the custom emails are implemented with a post type and taxonomy, and the ability to style the emails with the Customizer is probably the first time I have been really impressed by that tool.
    Works great!

    I also think this could be a abstracted as a feature plugin for WordPress Core.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Discover more from WP Tavern

Subscribe now to keep reading and get access to the full archive.

Continue reading