Skip to main content

benecaster_email_editor_before_utm_save

Action Premium email-editor

Fires before 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 will be stored: `{ medium, campaign, episode_campaign }`, with the default in place of a blank value

Example

add_action( 'benecaster_email_editor_before_utm_save', function ( int $show_id, array $settings ): void {
    my_addon_note_campaigns( $show_id, $settings['campaign'], $settings['episode_campaign'] );
}, 10, 2 );

Notes

The defaults are email, broadcast and episode_notification. 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 →