Skip to main content

benecaster_email_editor_after_template_reset

Action Premium email-editor

Fires after Reset to default removes a design or branding. Nothing is then stored, so Benecaster’s template or a theme’s override goes out.

Parameters

Name Type Default Description
$show_id int — The show, or 0 for the site-wide design
$type string — The email type, or `_wrapper` for a show's branding

Example

add_action( 'benecaster_email_editor_after_template_reset', function ( int $show_id, string $type ): void {
    my_addon_refresh_summary();
}, 10, 2 );

Notes

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