Skip to content

Commit 2df7165

Browse files
authored
Merge pull request #107 from SparkPost/issue104
Make endpoint public
2 parents 6004432 + 867aab0 commit 2df7165

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/hooks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Hook names are prefixed with `wpsp_`.
1818
| wpsp_open_tracking | Filter |
1919
| wpsp_click_tracking | Filter |
2020
| wpsp_template_id | Filter | Use a different template ID
21-
| wpsp_substitution_content_tag_name| Filter | Use a different tag for content substitution. By default you needed to use `content` tag. **IMPORTANT: DO NOT USE IT. IT'LL BE REMOVED IN NEXT RELEASE**
2221
| wpsp_sender_email | Filter |
2322
| wpsp_sender_name | Filter |
2423
| wpsp_response_body | Filter |

mailer.http.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class SparkPostHTTPMailer extends \PHPMailer
1010
{
11-
protected $endpoint = 'https://api.sparkpost.com/api/v1/transmissions';
11+
public $endpoint = 'https://api.sparkpost.com/api/v1/transmissions';
1212
private $settings;
1313

1414
/**
@@ -89,7 +89,7 @@ protected function get_request_body()
8989
$template_id = apply_filters('wpsp_template_id', $this->settings['template']);
9090

9191
// pass through either stored template or inline content
92-
if (!empty($template_id)) {
92+
if (!empty($template_id)) {
9393
// stored template
9494
$body['content']['template_id'] = $template_id;
9595

0 commit comments

Comments
 (0)