benecaster_email_editor_after_template_save
Fires after an email design is saved in the Email Editor, including by a restore or an import. It does not fire for a refused save.
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_after_template_save', function ( int $show_id, string $type, array $design ): void {
my_addon_refresh_summary();
}, 10, 3 );
Notes
Walkthrough: React when a podcaster saves an email design.
Need this built rather than just documented? See our services →