Title: Texlab Current Year
Author: Texlab IT
Published: <strong>2024 年 4 月 7 日</strong>
Last modified: 2025 年 4 月 19 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/texlab-current-year.svg)

# Texlab Current Year

 作者：[Texlab IT](https://profiles.wordpress.org/texlab/)

[下载](https://downloads.wordpress.org/plugin/texlab-current-year.1.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/texlab-current-year/#description)
 * [评价](https://cn.wordpress.org/plugins/texlab-current-year/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/texlab-current-year/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/texlab-current-year/#developers)

 [支持](https://wordpress.org/support/plugin/texlab-current-year/)

## 描述

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.

#### Features

 * Simple shortcode `[texlab_current_year]` to display the current year
 * Supports internationalization (i18n)
 * Lightweight and efficient
 * 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

 * GitHub Repository: [Texlab Current Year on GitHub](https://github.com/texlabit/texlab-current-year)
 * Feel free to contribute to the development of this plugin

### Additional Info

For more information and support, please visit:
 [Texlab IT](https://www.texlabit.com/contact/)

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/texlab-current-year` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the shortcode `[texlab_current_year]` in your content

## 常见问题

### How do I use this plugin?

Simply insert the shortcode `[texlab_current_year]` wherever you want the current
year to appear.

### Does this plugin slow down my website?

No, this plugin is very lightweight and only loads the minimal code needed to display
the current year.

### Can I use this in my theme’s template files?

Yes, you can use the shortcode in template files by using the `do_shortcode()` function:

### Does it support different date formats?

Currently, the plugin only displays the year in YYYY format. If you need different
date formats, please contact us for feature requests.

## 评价

![](https://secure.gravatar.com/avatar/c2de97ae2f8a2e488992b8b0f8c08c6af742e1bb89fcdad8e05b8adecadfd78a?
s=60&d=retro&r=g)

### 󠀁[Extremely beneficial plugin](https://wordpress.org/support/topic/extremely-beneficial-plugin/)󠁿

 [awal2645](https://profiles.wordpress.org/awal2645/) 2024 年 4 月 7 日

Extremely beneficial plugin

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/texlab-current-year/reviews/)

## 贡献者及开发者

「Texlab Current Year」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Texlab IT ](https://profiles.wordpress.org/texlab/)

[帮助将「Texlab Current Year」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/texlab-current-year)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/texlab-current-year/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/texlab-current-year/)，或通过[RSS](https://plugins.trac.wordpress.org/log/texlab-current-year/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/texlab-current-year/)。

## 更新日志

#### 1.1.0

 * Added proper class-based structure
 * Improved code organization and documentation
 * Added internationalization support
 * Added activation and deactivation hooks
 * Enhanced security measures

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.1.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/texlab-current-year/)
 * 标签
 * [current year](https://cn.wordpress.org/plugins/tags/current-year/)[date](https://cn.wordpress.org/plugins/tags/date/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[year](https://cn.wordpress.org/plugins/tags/year/)
 *  [高级视图](https://cn.wordpress.org/plugins/texlab-current-year/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/texlab-current-year/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/texlab-current-year/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/texlab-current-year/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/texlab-current-year/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/texlab-current-year/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/texlab-current-year/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/texlab-current-year/reviews/)

## 贡献者

 *   [ Texlab IT ](https://profiles.wordpress.org/texlab/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/texlab-current-year/)