eNewsletter initial email content hook

Hello there,

We get back to you regarding the eNewsletter. We needed to provide a client with a more intuitive and easy way to compose their newsletters and we needed a content template functionality – the actual contents of the email. Hopefully it was very easy to modify the plugin by adding a single line of code at line 27, creating a filter hook named enewsletter_init_content.

file: email-newsletter-files/page-create-newsletter.php

lines 20-33:

//set data by default if we create new newsletter
if ( ! isset( $newsletter_data ) ) {
$newsletter_data['subject'] = "Newsletter";
$newsletter_data['template'] = $templates['0']['name'];
$newsletter_data['from_name'] = $settings['from_name'] ? $settings['from_name'] : get_option( 'blogname' );
$newsletter_data['from_email'] = $settings['from_email'] ? $settings['from_email'] : get_option( 'admin_email' );
$newsletter_data['contact_info'] = $settings['contact_info'] ? $settings['contact_info'] : "";
$newsletter_data['content'] = apply_filters( 'enewsletter_init_content', '', $newsletter_data ); /* line 27 */
// $newsletter_data['bounce_email'] = get_option( 'admin_email' );

$page_title = __( 'Create Newsletter', 'email-newsletter' );

$mode = "create";
}

Cheers.