Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/27/2016 08:23:37 PM (10 years ago)
Author:
djpaul
Message:

Emails: add post type and taxonomy, and supporting wp-admin customisations.

All of BuddyPress' emails have been moved into email posts. The change includes an installation routine, but this won't be run until the db_version number is bumped in a subsequent commit. Updates to functions using wp_mail will also follow.

Tokens are used to personalise the email content (e.g. to add a link to the recipient’s user profile). Each type of email in BuddyPress has been assigned a unique type, and these are mapped to the email post through a new "email type" taxonomy.

The change includes a new HTML email template based on work by Ted Goas and contributors from the Cerberus email templates project. Ted, thank you very much. Learn more at http://tedgoas.github.io/Cerberus/

See #6592. Props timersys, mercime, boonebgorges, hnla, DJPaul.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-loader.php

    r10417 r10474  
    423423        $this->current_user   = new stdClass();
    424424        $this->displayed_user = new stdClass();
     425
     426        /** Post types and taxonomies *****************************************/
     427        $this->email_post_type     = apply_filters( 'bp_email_post_type', 'bp-email' );
     428        $this->email_taxonomy_type = apply_filters( 'bp_email_tax_type', 'bp-email-type' );
    425429    }
    426430
Note: See TracChangeset for help on using the changeset viewer.