Skip to main content

benecaster_email_editor_before_notification_settings_save

Action Premium email-editor

Fires before a show’s settings on the Email Editor’s Episode Notifications tab are saved, on every save, whether or not anything changed.

Parameters

Name Type Default Description
$show_id int — The show
$settings array — What will be stored: `enabled` (bool), `trigger` (`per_tier` or `teaser`), `authoring` (`template` or `compose`), `autoplay` (bool)

Example

add_action( 'benecaster_email_editor_before_notification_settings_save', function ( int $show_id, array $settings ): void {
    my_addon_remember_previous_trigger( $show_id );
}, 10, 2 );

Notes

Need this built rather than just documented? See our services →