# Current Year

> Outputs the current year. Insert it with the snippet shortcode anywhere you need a year that updates itself, such as a footer notice.

- Type: PHP
- Runs: Shortcode, where you place it
- Category: [Content](https://wpide.com/library/category/content/)
- Tags: content, shortcode, year, footer
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/current-year-shortcode/

## Code

```php
echo esc_html( wp_date( 'Y' ) );
```

## Notes

Copy the snippet shortcode from the editor after saving.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Current Year" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
