Skip to main content

benecaster_email_editor_before_template_save

Action Premium email-editor

Fires before an email design is saved in the Email Editor.

Parameters

Name Type Default Description
$show_id int — The show, or 0 for the site-wide design
$type string — The email type
$design array — The design: `{ version, blocks: [ { id, type, props, conditions } ] }`

Example

add_action( 'benecaster_email_editor_before_template_save', function ( int $show_id, string $type, array $design ): void {
    my_addon_refresh_summary();
}, 10, 3 );

Notes

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