{"id":37459,"date":"2015-07-08T06:26:10","date_gmt":"2015-07-08T06:26:10","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/years-ago-today\/"},"modified":"2024-08-09T06:47:23","modified_gmt":"2024-08-09T06:47:23","slug":"years-ago-today","status":"publish","type":"plugin","link":"https:\/\/ug.wordpress.org\/plugins\/years-ago-today\/","author":3606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.6","stable_tag":"1.6","tested":"6.6.5","requires":"4.9","requires_php":"","requires_plugins":null,"header_name":"Years Ago Today","header_author":"Scott Reilly","header_description":"","assets_banners_color":"0074a2","last_updated":"2024-08-09 06:47:23","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522","header_plugin_uri":"https:\/\/coffee2code.com\/wp-plugins\/years-ago-today\/","header_author_uri":"https:\/\/coffee2code.com\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":6427,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"coffee2code","date":"2015-07-08 06:26:10"},"1.0.1":{"tag":"1.0.1","author":"coffee2code","date":"2015-08-04 05:53:17"},"1.1":{"tag":"1.1","author":"coffee2code","date":"2016-04-13 22:44:30"},"1.2":{"tag":"1.2","author":"coffee2code","date":"2017-03-02 20:42:00"},"1.2.1":{"tag":"1.2.1","author":"coffee2code","date":"2017-05-10 04:11:59"},"1.2.2":{"tag":"1.2.2","author":"coffee2code","date":"2018-02-15 06:29:18"},"1.3":{"tag":"1.3","author":"coffee2code","date":"2019-03-18 05:33:20"},"1.3.1":{"tag":"1.3.1","author":"coffee2code","date":"2019-06-11 05:45:46"},"1.3.2":{"tag":"1.3.2","author":"coffee2code","date":"2019-11-19 00:50:37"},"1.3.3":{"tag":"1.3.3","author":"coffee2code","date":"2020-06-06 06:48:04"},"1.3.4":{"tag":"1.3.4","author":"coffee2code","date":"2020-09-19 06:43:57"},"1.4":{"tag":"1.4","author":"coffee2code","date":"2021-04-20 07:28:14"},"1.5":{"tag":"1.5","author":"coffee2code","date":"2022-10-13 06:25:00"},"1.5.1":{"tag":"1.5.1","author":"coffee2code","date":"2023-09-03 05:43:04"},"1.6":{"tag":"1.6","author":"coffee2code","date":"2024-08-09 06:47:23"}},"upgrade_notice":{"1.6":"<p>Minor update: Prevented deprecation notice under PHP8.2, noted compatibility through WP 6.6+, removed unit tests from release packaging, and updated copyright date (2024)<\/p>","1.5.1":"<p>Trivial update: noted compatibility through WP 6.3+ and updated copyright date (2023)<\/p>","1.5":"<p>Minor update: improved cron handling, discontinued HTML in emails, prevented a PHP8 warning, added DEVELOPER-DOCS.md, noted compatibility through WP 6.0+, and reorganized unit test files.<\/p>","1.4":"<p>Minor update: added ability for admins to edit the value of the setting for other users, noted compatibility through WP 5.7+., and updated copyright date (2021).<\/p>","1.3.4":"<p>Trivial update: Removed some extra spaces from output markup, restructured unit test file structure, expanded unit test coverage, and noted compatibility through WP 5.5+.<\/p>","1.3.3":"<p>Trivial update: added TODO.md file, updated a few URLs to be HTTPS, expanded unit testing, and noted compatibility through WP 5.4+<\/p>","1.3.2":"<p>Bugfix update: fixed bug causing unrelated posts to be listed, noted compatibility through WP 5.3+, updated copyright date (2020)<\/p>","1.3.1":"<p>Trivial update: modernized unit tests, noted compatibility through WP 5.2+<\/p>","1.3":"<p>Recommended update: tweaked plugin initialization process, minor filter and string translation improvements, created CHANGELOG.md to store historical changelog outside of readme.txt, noted compatibility through WP 5.1+, updated copyright date (2019)<\/p>","1.2.2":"<p>Trivial update: noted compatibility through WP 4.9+; added README.md; added GitHub link to readme; updated copyright date (2018)<\/p>","1.2.1":"<p>Minor bugfix update: Prevent admin dashboard CSS styling from applying to other dashboard widgets<\/p>","1.2":"<p>Minor update: added footer text to daily emails, show today&#039;s date and number of posts in dashboard widget and email, use separate singular and plural strings, compatibility is now WP 4.6-4.7+, updated copyright date (2017), and more<\/p>","1.1":"<p>Recommended update: bugfix for posts published the day after past todays sometimes being included; adjustments to utilize language packs; minor unit test tweaks; noted compatibility through WP 4.4+; and updated copyright date<\/p>","1.0.1":"<p>Minor bugfixes: Default to not sending email on days without past posts, as originally intended; locate lang files in proper sub-directory; noted compatibility through WP 4.3+<\/p>","1.0":"<p>Initial public release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1194581,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1194581,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.2","1.2.1","1.2.2","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.4","1.5","1.5.1","1.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1606758,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1606758,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":1606758,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"A screenshot of the admin dashboard showing posts published on the current day in past years.","2":"A screenshot of the admin dashboard when no posts were published on the current day in any past year.","3":"Profile option for opting into receiving a daily email of posts published on the current day in past years."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,2758,434,1433,60833],"plugin_category":[],"plugin_contributors":[78189],"plugin_business_model":[216239],"class_list":["post-37459","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-coffee2code","plugin_tags-dashboard","plugin_tags-history","plugin_tags-on-this-day","plugin_contributors-coffee2code","plugin_business_model-community","plugin_committers-code2coffee","plugin_committers-coffee2code","plugin_committers-matt"],"banners":{"banner":"https:\/\/ps.w.org\/years-ago-today\/assets\/banner-772x250.png?rev=1194581","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/years-ago-today\/assets\/icon-128x128.png?rev=1194581","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/years-ago-today\/assets\/screenshot-1.png?rev=1606758","caption":"A screenshot of the admin dashboard showing posts published on the current day in past years."},{"src":"https:\/\/ps.w.org\/years-ago-today\/assets\/screenshot-2.png?rev=1606758","caption":"A screenshot of the admin dashboard when no posts were published on the current day in any past year."},{"src":"https:\/\/ps.w.org\/years-ago-today\/assets\/screenshot-3.png?rev=1606758","caption":"Profile option for opting into receiving a daily email of posts published on the current day in past years."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Links: <a href=\"https:\/\/coffee2code.com\/wp-plugins\/years-ago-today\/\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/years-ago-today\/\">Plugin Directory Page<\/a> | <a href=\"https:\/\/github.com\/coffee2code\/years-ago-today\/\">GitHub<\/a> | <a href=\"https:\/\/coffee2code.com\/\">Author Homepage<\/a><\/p>\n\n<h3>Developer Documentation<\/h3>\n\n<p>Developer documentation can be found in <a href=\"https:\/\/github.com\/coffee2code\/years-ago-today\/blob\/master\/DEVELOPER-DOCS.md\">DEVELOPER-DOCS.md<\/a>. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what's available.<\/p>\n\n<ul>\n<li><code>c2c_years_ago_today-email_cron_time<\/code> : 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\".<\/li>\n<li><code>c2c_years_ago_today-email-if-no-posts<\/code> : 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.<\/li>\n<li><code>c2c_years_ago_today-email-body-no-posts<\/code> : 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. <\/li>\n<li><code>c2c_years_ago_today-first_published_year<\/code> : Explicitly define the earliest year to be considered when finding earlier published posts.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install via the built-in WordPress plugin installer. Or download and unzip <code>years-ago-today.zip<\/code> inside the plugins directory for your site (typically <code>wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<li>View the widget on your admin dashboard.<\/li>\n<li>(Optional.) To sign up for a daily email that lists posts published that day, go to your profile, set the checkbox for '\"Years Ago Today\" email', and then press the button to update your profile.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='if%20multiple%20posts%20were%20made%20on%20this%20day%20in%20a%20past%20year%2C%20will%20they%20be%20listed%3F'><h3>If multiple posts were made on this day in a past year, will they be listed?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id='are%20posts%20published%20today%20included%3F'><h3>Are posts published today included?<\/h3><\/dt>\n<dd><p>No, only posts made for any year before the current year.<\/p><\/dd>\n<dt id='can%20i%20filter%20the%20widget%20to%20only%20show%20my%20posts%20%28or%20only%20posts%20for%20a%20particular%20author%29%3F'><h3>Can I filter the widget to only show my posts (or only posts for a particular author)?<\/h3><\/dt>\n<dd><p>Not yet. This functionality is expected in a future update.<\/p><\/dd>\n<dt id='why%20is%20the%20checkbox%20for%20%27%22years%20ago%20today%22%20email%27%20in%20my%20profile%20disabled%3F'><h3>Why is the checkbox for '\"Years Ago Today\" email' in my profile disabled?<\/h3><\/dt>\n<dd><p>Your site has its cron system disabled (via the <code>DISABLE_WP_CRON<\/code> constant) which means scheduled events (such as this plugin's daily emails) won't be handled by WordPress.<\/p><\/dd>\n<dt id='i%20opted%20into%20the%20daily%20email%2C%20but%20why%20haven%27t%20i%20gotten%20it%3F'><h3>I opted into the daily email, but why haven't I gotten it?<\/h3><\/dt>\n<dd><p>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).<\/p><\/dd>\n<dt id='does%20this%20plugin%20include%20unit%20tests%3F'><h3>Does this plugin include unit tests?<\/h3><\/dt>\n<dd><p>Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the <a href=\"https:\/\/github.com\/coffee2code\/years-ago-today\/\">plugin's GitHub repository<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.6 (2024-08-09)<\/h4>\n\n<ul>\n<li>Fix: Convert use of deprecated string interpolation syntax to prevent notice under PHP8.2. Props Simounet.<\/li>\n<li>Change: Note compatibility through WP 6.6+<\/li>\n<li>Change: Update copyright date (2024)<\/li>\n<li>New: Add <code>.gitignore<\/code> file<\/li>\n<li>Change: Remove development and testing-related files from release packaging<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Hardening: Prevent direct web access to <code>bootstrap.php<\/code><\/li>\n<li>Allow tests to run against current versions of WordPress<\/li>\n<li>New: Add <code>composer.json<\/code> for PHPUnit Polyfill dependency<\/li>\n<li>Change: In bootstrap, store path to plugin file in a constant<\/li>\n<li>Change: In bootstrap, add backcompat for PHPUnit pre-v6.0<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.5.1 (2023-06-11)<\/h4>\n\n<ul>\n<li>Change: Note compatibility through WP 6.3+<\/li>\n<li>Change: Update copyright date (2023)<\/li>\n<li>New: Add link to DEVELOPER-DOCS.md in README.md<\/li>\n<\/ul>\n\n<h4>1.5 (2022-10-12)<\/h4>\n\n<p>Highlights:<\/p>\n\n<ul>\n<li>This minor release improves cron handling, removes the little HTML used from emails, prevents a PHP8 warning, adds DEVELOPER-DOCS.md, notes compatibility through WP 6.0+, and reorganizes unit test files.<\/li>\n<\/ul>\n\n<p>Details:<\/p>\n\n<ul>\n<li>Fix: Make <code>__wakeup()<\/code> public to prevent PHP8 warnings. Props Simounet, koolinus.<\/li>\n<li>Change: Move cron initialization into new <code>cron_init()<\/code><\/li>\n<li>Change: Register cron task earlier. Props Simounet.<\/li>\n<li>Change: Remove HTML from email. Props Simounet.<\/li>\n<li>New: Add DEVELOPER-DOCS.md and move hooks documentation into it<\/li>\n<li>Change: Pare plugin tags down to 5<\/li>\n<li>Change: Note compatibility through WP 6.0+<\/li>\n<li>Change: Update copyright date (2022)<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Change: Restructure unit test directories\n\n<ul>\n<li>Change: Move <code>phpunit\/<\/code> into <code>tests\/phpunit\/<\/code><\/li>\n<li>Change: Move <code>phpunit\/bin\/<\/code> into <code>tests\/<\/code><\/li>\n<\/ul><\/li>\n<li>Change: Remove 'test-' prefix from unit test file<\/li>\n<li>Change: In bootstrap, store path to plugin file constant<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><em>Full changelog is available in <a href=\"https:\/\/github.com\/coffee2code\/years-ago-today\/blob\/master\/CHANGELOG.md\">CHANGELOG.md<\/a>.<\/em><\/p>","raw_excerpt":"Admin dashboard widget (and optional daily email) that lists posts published to your site on this day in years past.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/37459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=37459"}],"wp:attachment":[{"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=37459"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=37459"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=37459"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=37459"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=37459"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=37459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}