[buddypress-trac] [BuddyPress Trac] #6932: Emails: real unsubscribe functionality

buddypress-trac noreply at wordpress.org
Wed Apr 27 16:13:31 UTC 2016


#6932: Emails: real unsubscribe functionality
----------------------------------------+---------------------------
 Reporter:  DJPaul                      |       Owner:  tharsheblows
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  2.6
Component:  API - Emails                |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+---------------------------

Comment (by tharsheblows):

 @boonebgorges That makes sense! I could combine bp_email_schema and
 bp_email_get_type_schema so it looks something like

 {{{#!php
 <?php
 ...
   $email_schema['activity-comment'] = array(
     'description' = __( 'A member has replied to an activity update that
 the recipient posted.', 'buddypress' ),
     'email_content' = array(
       'post_title'   => __( '[{{{site.name}}}] {{poster.name}} replied to
 one of your updates', 'buddypress' ),
       'post_content' => __ ...
     ),
    'unsubscribe' => array(
       'meta_key' = 'notification_activity_new_reply',
       'message' = __( 'You will no longer receive emails when someone
 replies to an update or comment you posted.', 'buddypress' ),
       'landing_page' = trailingslashit( bp_get_root_domain() . '/' .
 bp_get_activity_root_slug() )
    ),
   ...
 return apply_filters( 'bp_email_schema', $email_schema );
 }}}

 so people could even add to it and it's all in one place. But I didn't
 want to do that without discussing it first. What do you think?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6932#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list