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-core/bp-core-update.php

    r10417 r10474  
    214214        bp_update_option( 'bp-active-components', $default_components );
    215215        bp_core_add_page_mappings( $default_components, 'delete' );
     216        bp_core_install_emails();
    216217
    217218    // Upgrades
     
    260261        if ( $raw_db_version < 9615 ) {
    261262            bp_update_to_2_3();
     263        }
     264
     265        // 2.5.0
     266        if ( $raw_db_version < 10440 ) {
     267            bp_update_to_2_5();
    262268        }
    263269    }
     
    482488        bp_core_install_notifications();
    483489    }
     490}
     491
     492/**
     493 * 2.5.0 update routine.
     494 *
     495 * - Add emails.
     496 *
     497 * @since 2.5.0
     498 */
     499function bp_update_to_2_5() {
     500    bp_core_install_emails();
    484501}
    485502
Note: See TracChangeset for help on using the changeset viewer.