- Adds new method to render newsletter to the newsletter model - Adds new transient object to newsletter model that will hold temporary values (i.e., rendered body) when working with the model
13 lines
379 B
PHP
13 lines
379 B
PHP
<?php
|
|
namespace MailPoet\Cron\Workers\SendingQueue\Tasks;
|
|
|
|
use MailPoet\Newsletter\Shortcodes\Shortcodes as NewsletterShortcodes;
|
|
|
|
if(!defined('ABSPATH')) exit;
|
|
|
|
class Shortcodes {
|
|
static function process($content, $newsletter, $subscriber, $queue) {
|
|
$shortcodes = new NewsletterShortcodes($newsletter, $subscriber, $queue);
|
|
return $shortcodes->replace($content);
|
|
}
|
|
} |