Click tracking Switch
-
In the past I was instructed to add this code inorder to augment the email call for Sendgrid.
add_filter( 'wp_mail_smtp_providers_mailer_get_body', function ( $body, $mailer ) { if ( $mailer === 'sendgrid' ) { $body['template_id'] = 'templateId'; } return $body; }, 10, 2 );
I am now in need to add another parameter and am unsure of how to do that. Here is php code from the sendgrid API reference.
$tracking_settings = new TrackingSettings(); $click_tracking = new ClickTracking(); $click_tracking->setEnable(true); $click_tracking->setEnableText(false); $tracking_settings->setClickTracking($click_tracking);
Any chance you can show me how to add these parameters to my call.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Click tracking Switch’ is closed to new replies.