foreach ($emailParams as $key => $value) {
$message = str_replace($key, $value, $message);
}
- add_filter('wp_mail_content_type', create_function('', 'return "text/html"; '));
+ add_filter('wp_mail_content_type', function(){ return "text/html"; });
/*wp_mail($_POST['email'], __('Subscription Confirmation', 'wp-mailjet-subscription-widget'), $message,
array('From: ' . get_option('blogname') . ' <' . get_option('admin_email') . '>'));*/
/*echo '<p class="success">' . __('Subscription confirmation email sent. Please check your inbox and confirm the subscription.',
foreach ($emailParams as $key => $value) {
$message = str_replace($key, $value, $message);
}
- add_filter('wp_mail_content_type', create_function('', 'return "text/html"; '));
+ add_filter('wp_mail_content_type', function(){ return "text/html"; });
/*wp_mail($_POST['email'], __('Subscription Confirmation', 'wp-mailjet-subscription-widget'), $message,
array('From: ' . get_option('blogname') . ' <' . get_option('admin_email') . '>'));*/
/*echo '<p class="success">' . __('Subscription confirmation email sent. Please check your inbox and confirm the subscription.',
foreach ($emailParams as $key => $value) {
$message = str_replace($key, $value, $message);
}
- add_filter('wp_mail_content_type', create_function('', 'return "text/html"; '));
+ add_filter('wp_mail_content_type', function(){ return "text/html"; });
/*wp_mail($_POST['email'], __('Subscription Confirmation', 'wp-mailjet-subscription-widget'), $message,
array('From: ' . get_option('blogname') . ' <' . get_option('admin_email') . '>'));*/
/*echo '<p class="success">' . __('Subscription confirmation email sent. Please check your inbox and confirm the subscription.',