benecaster_email_editor_after_utm_save
Fires after a show’s UTM settings are saved on the Email Editor’s Link tracking tab, or through POST benecaster-email-editor/v1/link-tracking.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$show_id |
int |
— | The show |
$settings |
array |
— | What was stored: `{ medium, campaign, episode_campaign }` |
Example
add_action( 'benecaster_email_editor_after_utm_save', function ( int $show_id, array $settings ): void {
delete_transient( 'my_addon_campaign_report_' . $show_id );
}, 10, 2 );
Notes
A POST without episode_campaign keeps the stored one, and $settings still carries it. Walkthrough: Change the UTM tags on a broadcast's or an episode notification's links.
Need this built rather than just documented? See our services →