BACK TO DIRECTORY

Texlab Current Year

by Texlab IT

5.0
(1 ratings)

Texlab Current Year is a lightweight WordPress plugin that allows you to display the current year anywhere on your website using a simple shortcode. This is particularly useful for copyright notices and other date-sensitive content that needs to be automatically updated each year.

The year is calculated from the timezone configured in Settings > General, so it rolls over at midnight for your site rather than for the server.

Features

  • Simple shortcode [texlab_current_year] to display the current year
  • Uses the site’s configured timezone
  • Lightweight and efficient: no options, no database queries, no assets loaded
  • No configuration needed
  • Works with any theme
  • Perfect for footer copyright notices

Usage

Simply insert the shortcode [texlab_current_year] anywhere in your posts, pages, or widgets where you want the current year to appear.

Example usage in a copyright notice:
© [texlab_current_year] Your Company Name. All rights reserved.

Developers

The rendered year can be adjusted with the texlab_current_year filter:

add_filter( 'texlab_current_year', function ( $year ) { return $year; } );

GitHub repository: Texlab Current Year on GitHub

Additional Info

For more information and support, please visit:
Texlab IT

Plugin Details

Active Installs
0
Total Downloads
1,012
Version
1.2.0
Requires WP
6.5
Requires PHP
7.4
Tested Up To
7.1
Added
2024-04-07
Last Updated
2026-09-12 5:20am GMT

Ratings

5
1
4
0
3
0
2
0
1
0