benecaster_email_editor_before_import
Fires before a design file is imported. Each design also fires the ordinary save hooks.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$read |
array |
— | What the file would do: what it replaces, adds and leaves out |
$target |
int |
— | The show, or 0 for the site-wide design |
Example
add_action( 'benecaster_email_editor_before_import', function ( array $read, int $target ): void {
my_addon_refresh_summary();
}, 10, 2 );
Notes
Need this built rather than just documented? See our services →