| 开发者 |
coffee2code
audrey |
|---|---|
| 更新时间 | 2026年6月5日 14:11 |
| 捐献地址: | 去捐款 |
| PHP版本: | 5.6 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[years-ago-today] shortcode. 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 previous years.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
years-ago-today.zip inside the plugins directory for your site (typically wp-content/plugins/)[years-ago-today] shortcode to a post or page. Both output a title which can be overridden or omitted.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).
Yes.
Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the plugin's GitHub repository.
[years-ago-today] shortcode to display the same listing as the admin dashboard widgetget_widget_markup() and get_widget_inner_markup() to centralize listing markup generationcoffee2code/years-ago-today on WordPress 7.0+get_email_body() into new get_html_email()get_html_email_template() to return the template used for HTML emails, with placeholders for subject, body, and footerget_resized_content() to rewrite image tags in post content to use smaller-sized versionsget_html_email_image_size() to get image size used in HTML emailsget_email_body() and add optional arg to disable that behavior$include_year argument to get_formatted_date_string(), allowing for full date with yearget_posts()clear_transient_on_publish(), get_post_ids_cache_key(), and query_post_ids()get_bcc_batch_size() to get number of people to email per BCC: batchget_bcc_to_email_address() to get the 'To:' email address used for Bcc-batched emailscron_email() into new send_email_of_type()cron_email() into new get_users_to_email_grouped_by_content_type()section tagsget_first_published_year() query with get_posts()headadd_user_email_footer() to get_email_footer() and remove arguments and just return the footer based on a format ('text' or 'html')is_admin() guard from init(), which isn't strictly necessary and impedes unit testscurrent_time() and mysql2date() to more modern wp_date()get_optin_label() to centralize the optin label since it is used in two places.gitignore filebootstrap.phpcomposer.json for PHPUnit Polyfill dependency