YearAlert — Footer Year Auto-Updater
Keeps the copyright year in your footer fresh — automatically, forever.
Install in
An outdated copyright year in your footer — a stale © 2021 — makes your site look abandoned. YearAlert fixes that automatically and permanently.
Activate the plugin and it keeps the year in your footer current on every page load. There is nothing to configure — no account, no API key, no settings page, no code to paste. It runs entirely inside your own site: no data is sent anywhere, and there is no server to depend on.
It’s careful about what it changes. YearAlert only updates a 4-digit year when it is:
- in a copyright context — the same text contains ©, “Copyright” or “(c)”; or
- in the footer zone — the bottom of the page, where copyright lines live.
That means project or product names (“Apollo 2020”) outside the footer are left untouched, and a 4-digit run inside a longer number — an order or registration id — or a phone number is never rewritten. Founding dates (“Est. 1998”, “Family owned since 2012”, “desde 2011”) are never touched anywhere, not even in the footer next to your ©, and in a line with a © only the copyright year itself moves.
Features
- Zero configuration — activate and you’re done.
- Updates single years (
© 2021) and year ranges (2019–2024updates only the end year). - Idempotent — never rewrites a year that is already current.
- Leaves founding dates, product names and long ID numbers alone.
- Opt-out per element: add
data-yearalert-ignoreto any element to exclude it and its contents. - Wrapped so it can never break your page.
- No external requests, no tracking, no account.
Written by Joobi from the project's own listing. See the source page
1.0.1
- The script is now enqueued as a proper asset via
wp_enqueue_script()(WordPress.org Plugin Check compliance). Behavior is unchanged.
1.0.0
- Initial release. Zero-config client-side footer copyright-year updater with copyright-context and footer-zone gating, range support, idempotency, and per-element opt-out.
Follow this listing's changes (Atom feed)