Admin dashboard widget (and optional daily email) that lists posts published to your site on this day in years past.
This plugin provides a simply admin dashboard widget that lists all of the posts published to your site on this day in years past. Users have the option (via their profiles) to opt into receiving a daily email that provides a listing and links to all of the posts published to your site on this day in years past.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what’s available.
c2c_years_ago_today-email_cron_time
: Customize the time of day to email the Years Ago Today email to those who have opted-in to it. By default this is “9:00 am”.c2c_years_ago_today-email-if-no-posts
: Override whether the daily Years Ago Today email is sent out on days that don’t have any posts in prior years. By default this value is false, meaning no email is sent in such circumstances.c2c_years_ago_today-email-body-no-posts
: Customize the content of the body of the daily Years Ago Today email when it is sent on days that had no posts in prior years. c2c_years_ago_today-first_published_year
: Explicitly define the earliest year to be considered when finding earlier published posts.years-ago-today.zip
inside the plugins directory for your site (typically wp-content/plugins/
)A screenshot of the admin dashboard showing posts published on the current day in past years.
A screenshot of the admin dashboard when no posts were published on the current day in any past year.
Profile option for opting into receiving a daily email of posts published on the current day in past years.
Yes.
No, only posts made for any year before the current year.
Not yet. This functionality is expected in a future update.
Your site has its cron system disabled (via the DISABLE_WP_CRON
constant) which means scheduled events (such as this plugin’s daily emails) won’t be handled by WordPress.
The cron system for WordPress (which handles scheduled events, such as the schedule daily email) requires site traffic to trigger close to its scheduled time, so low traffic sites may not see events fire at a consistent time. It’s also possible cron has been disabled by the site (see previous question).
Highlights:
Details:
__wakeup()
public to prevent PHP8 warnings. Props Simounet, koolinus.cron_init()
phpunit/
into tests/phpunit/
phpunit/bin/
into tests/
Highlights:
Details:
type
attribute for style
tagFull changelog is available in CHANGELOG.md.