Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2021 05:17:02 PM (6 months ago)
Author:
imath
Message:

Add a new BP Email to welcome new members

Once users activated their account, they are now receiving a welcome email with a link to their profile and a link to reset their password in case they forgot about it since they registered.

Props vapvarun, dcavins

Fixes #8428

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r12898 r12905  
    37293729     */
    37303730    return (array) apply_filters( 'bp_email_get_schema', array(
     3731        'core-user-activation' => array(
     3732            /* translators: do not remove {} brackets or translate its contents. */
     3733            'post_title'   => __( '[{{{site.name}}}] Welcome!', 'buddypress' ),
     3734            /* translators: do not remove {} brackets or translate its contents. */
     3735            'post_content' => __( "Welcome to {{site.name}}!\n\nVisit your <a href=\"{{{profile.url}}}\">profile</a>, where you can tell us more about yourself, change your preferences, or make new connections, to get started.\n\nForgot your password? Don't worry, you can reset it with your email address from <a href=\"{{{lostpassword.url}}}\">this page</a> of our site", 'buddypress' ),
     3736            /* translators: do not remove {} brackets or translate its contents. */
     3737            'post_excerpt' => __( "Welcome to {{site.name}}!\n\nVisit your profile, where you can tell us more about yourself, change your preferences, or make new connections, to get started: {{{profile.url}}}\n\nForgot your password? Don't worry, you can reset it with your email address from this page of our site: {{{lostpassword.url}}}", 'buddypress' ),
     3738        ),
    37313739        'activity-comment' => array(
    37323740            /* translators: do not remove {} brackets or translate its contents. */
     
    39994007            'message'   => __( 'You will no longer receive emails when your request to join a group has been accepted or denied.', 'buddypress' ),
    40004008        ),
     4009    );
     4010
     4011    $core_user_activation = array(
     4012        'description'   => __( 'Recipient has successfully activated an account.', 'buddypress' ),
    40014013    );
    40024014
     
    40184030        'groups-membership-request-accepted' => $groups_membership_request_accepted,
    40194031        'groups-membership-request-rejected' => $groups_membership_request_rejected,
     4032        'core-user-activation'               => $core_user_activation,
    40204033    );
    40214034
Note: See TracChangeset for help on using the changeset viewer.