benecaster_email_editor_before_template_reset
Fires before Reset to default removes a design or branding. A reset of what was not stored fires neither this nor the after action.
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_before_template_reset', function ( int $show_id, string $type ): void {
my_addon_refresh_summary();
}, 10, 2 );
Notes
Walkthrough: React when a podcaster resets an email design.
Need this built rather than just documented? See our services →