Add placeholders that relate to dates.
You can use formatting like the “date” command in PHP (see https://php.net/date)
The general format for a placeholder is:
where PLACEHOLDER can be one of:
and FORMAT can be any format allowed by the date command in PHP
Some common Formats:
- “Y-m-d” will produce 2015-06-25
- “d/m/Y” will produce 25/06/2015
- “M jS Y” will produce Jun 25th 2015
- “l jS F Y” will produce Thursday 25th June 2015
You can also set the default format in the phpList settings. It will appear in the General settings.
When you have a default format, you can leave FORMAT empty and just use eg.
The replacement works both in the body of a campaign and the subject of the campaign.
Once the campaign has finished sending the dates will be fixed, when the campaign is archived. When you re-queue the campaign, the placeholder will no longer exist. You can bypass this behaviour in the settings.
This requires phpList 3.2.4 or later.
This plugin will add the option to define a default date format in the settings.
It will also add an option in category archive that when set will bypass the final fixing of the dates when the campaign has been sent.
(eg NEXTYEAR, LASTYEAR).