Cron job – not working due to plugin
-
Since I installed Sparkpost plugin, my cron jobs are not working.
I am getting the following error:
PHP Parse error: syntax error, unexpected T_FUNCTION in wordpress-sparkpost.php on line 38This is the line:
add_filter(‘wp_mail’, function ($args) {
global $phpmailer;
if (!$phpmailer instanceof SparkPostHTTPMailer) {
$phpmailer = new SparkPostHTTPMailer();
}
return $args;
});I am using PHP 5.3 and wordpress 4.4.2
Can someone help me?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cron job – not working due to plugin’ is closed to new replies.