Skip to:
Content

BuddyPress.org

Changeset 12691


Ignore:
Timestamp:
07/26/2020 02:40:58 AM (3 months ago)
Author:
espellcaste
Message:

On bp_email_get_schema, we are adding a bp_email_get_schema hook to facilitate the addition and removal of BuddyPress emails.

Props imath

Fixes #8173

File:
1 edited

Legend:

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

    r12678 r12691  
    34013401 */
    34023402function bp_email_get_schema() {
    3403     return array(
     3403
     3404    /**
     3405     * Filters the list of `bp_email_get_schema()` allowing anyone to add/remove emails.
     3406     *
     3407     * @since 7.0.0
     3408     *
     3409     * @param array $emails The array of emails schema.
     3410     */
     3411    return (array) apply_filters( 'bp_email_get_schema', array(
    34043412        'activity-comment' => array(
    34053413            /* translators: do not remove {} brackets or translate its contents. */
     
    35333541            'post_excerpt' => __( "Your membership request for the group \"{{group.name}}\" has been rejected.\n\nTo request membership again, visit: {{{group.url}}}", 'buddypress' ),
    35343542        ),
    3535     );
     3543    ) );
    35363544}
    35373545
     
    35603568            'meta_key'  => 'notification_activity_new_reply',
    35613569            'message'   => __( 'You will no longer receive emails when someone replies to an update or comment you posted.', 'buddypress' ),
    3562             ),
     3570        ),
    35633571    );
    35643572
     
    35683576            'meta_key'  => 'notification_activity_new_reply',
    35693577            'message'   => __( 'You will no longer receive emails when someone replies to an update or comment you posted.', 'buddypress' ),
    3570             ),
     3578        ),
    35713579    );
    35723580
Note: See TracChangeset for help on using the changeset viewer.