Skip to main content

benecaster_email_editor_after_notification_settings_save

Action Premium email-editor

Fires after a show’s settings on the Email Editor’s Episode Notifications tab are saved, on every save, whether or not anything changed. Compare with your own record if you only want a change.

Parameters

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

Example

add_action( 'benecaster_email_editor_after_notification_settings_save', function ( int $show_id, array $settings ): void {
    if ( $settings['enabled'] ) {
        my_crm_note( $show_id, 'Episode emails are on' );
    }
}, 10, 2 );

Notes

Notifications and autoplay are off by default. An unknown trigger or authoring is stored as its default (per_tier, template). Walkthrough: React when a show switches episode notifications on.

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