Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDE-2632 Update SendGrid custom unsubscribe URL #175

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: alleyinteractive

Tags: alleyinteractive, wp-newsletter-builder

Stable tag: 0.3.35
Stable tag: 0.4.2

Requires at least: 6.2

Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Newsletter Builder
* Plugin URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Description: Interface to manage email newsletters
* Version: 0.4.1
* Version: 0.4.2
* Author: Alley Interactive
* Author URI: https://github.com/alleyinteractive/wp-newsletter-builder
* Requires at least: 6.2
Expand Down
2 changes: 1 addition & 1 deletion src/email-providers/class-sendgrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function create_campaign( int $newsletter_id, array $list_ids, string $ca
$request_body->email_config->subject = $subject;

// TODO: A suppression group id or a custom unsubscribe url should be options.
$request_body->email_config->custom_unsubscribe_url = home_url() . '/account';
$request_body->email_config->custom_unsubscribe_url = home_url() . '/account#panel-1-newsletters';

$request_body->send_to->list_ids = $list_ids;
$request_body->send_to->segment_ids = [];
Expand Down