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.
[texlab_current_year] to display the current yearSimply 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.
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
For more information and support, please visit:
Texlab IT