[buddypress-trac] [BuddyPress Trac] #7045: Emails: Allow a custom `unsubscribe` token to be set directly in `bp_send_email()`
buddypress-trac
noreply at wordpress.org
Mon May 2 23:10:54 UTC 2016
#7045: Emails: Allow a custom `unsubscribe` token to be set directly in
`bp_send_email()`
--------------------------+-------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.5.3
Component: API - Emails | Version: 2.5.0
Severity: normal | Keywords:
--------------------------+-------------------
There may be instances where a dev will want to use `bp_send_email()` with
a custom `{{unsubscribe}}` link.
Unfortunately, at the moment, doing something like the following will not
work:
{{{#!php
bp_send_email( $email_type, 'email at address.com', array(
'tokens' => array(
'unsubscribe' => 'CUSTOM LINK'
)
) );
}}}
Attached patch allows this and also adds a Settings component check to the
default unsubscribe link.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7045>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list