Skip to main content

benecaster_email_editor_export_file

Filter Premium email-editor

Filters a design file before download. Keep it free of subscribers and of who saved a design, because the file may leave the site.

Parameters

Name Type Default Description
$file array — `{ format, version, emails: [ { type, subject, design } ], branding }`
$target int — The show, or 0 for the site-wide design

Returns: array

Example

add_filter( 'benecaster_email_editor_export_file', function ( array $file, int $target ): array {
    $file['exported_from'] = home_url();
    return $file;
}, 10, 2 );

Notes

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