跳到内容

Texlab Current Year

v1.2.0

Texlab IT · 2024年4月7日 上架

Display the current year anywhere in your WordPress site using a simple shortcode.

正在使用
10 以下
评分
5.0 / 5
累计下载
1,144
最近更新
2026年9月12日
1 条评价需要 WordPress 6.5+已测试到 7.1.5PHP 7.4+

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums