[WordPress] 外掛分享: Texlab Current Year

首頁外掛目錄 › Texlab Current Year
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
5 天前
最後更新
問題解決
WordPress 6.5+ PHP 7.4+ v1.2.0 上架:2024-04-06

內容簡介

Texlab Current Year 是一款輕量級的 WordPress 外掛,能讓您在網站的任何地方顯示當前年份,特別適合用於版權聲明等需要自動更新的日期內容。

【主要功能】
• 簡單的短碼 [texlab_current_year] 顯示當前年份
• 使用網站設定的時區計算年份
• 輕量高效,無需選項或資料庫查詢
• 無需配置即可使用
• 兼容任何佈景主題
• 完美適用於頁腳版權聲明

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.
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

延伸相關外掛

文章
Filter
Mastodon