[WordPress] 外掛分享: Wedepohl Engineering Time Since

前言介紹

  • 這款 WordPress 外掛「Wedepohl Engineering Time Since」是 2020-05-17 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2022-02-16,距離現在已有 1174 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

mwedepohl |

外掛標籤

days | span | time | years |

內容簡介

這是一個簡短代碼,可返回指定日期至今的年份或天數。

使用方式:[we_time_since y=Y m=M d=D type="T"]

其中:
* Y = 所需年份
* M = 月份 (1-12) - 選填。預設為1
* D = 天數 (1-31) - 選填。預設為1
* T = 類型 ("year", "day") - 選填。預設為 "year"

返回:
返回自提供日期至今的年份或天數,如果日期無效/未提供年份,則返回錯誤訊息。

範例

我在 Wedepohl Engineering 工作已經有 [we_time_since y=1998 m=1 d=1] 年了。

我已經開始航海 [we_time_since y=2008 m=4] 年了。

我此行已經 [we_time_since y=2020 m=5 d=5 type="day"] 天了。

動作
before_we_time_since - 進入簡碼時呼叫,傳遞傳遞給簡碼的引數數組。
after_we_time_since - 函数退出之前的呼叫。傳遞簡碼處理的引數數組。

過濾器
we_time_since - 在函數退出時呼叫。傳遞一個字符串,該字符串是簡碼的結果。

活躍貢獻者
Martin Wedepohl (開發)

原文外掛簡介

Shortcode to return the number of years or days since a certain date.
Usage: [we_time_since y=Y m=M d=D type="T"]
Where:
* Y = the year required
* M = the month (1 – 12) – optional Default = 1
* D = the day (1-31) – optional Default = 1
* T = the type (“year”, “day”) – optional Default = “year”
Returns:
The number of years or days since the supplied date or an error message if the date is invalid / no year supplied
Examples
I have worked at Wedepohl Engineering for [we_time_since y=1998 m=1 d=1] years
I have been sailing for [we_time_since y=2008 m=4] years
I have been on this journey for [we_time_since y=2020 m=5 d=5 type="day"] days
Actions
before_we_time_since - Called upon entry to the shortcode. Passed the array of arguments that are passed to the shortcode.
after_we_time_since - Called just before exit of the function. Passed the processed array of arguments from the shortcode.

Filters
we_time_since Called at exit of the function. Passed a string which is the results of the shortcode.

Active Contributors
Martin Wedepohl (Development)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Wedepohl Engineering Time Since」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Genesis Site Title Styles 》這個外掛可以為 Genesis 網站標題中的每個單詞添加一個 span 標籤,以便使用 CSS 進行單獨的樣式設定。樣式設定可使用 nth-child() 選擇器進行。, 分別對每個...。
  • Years Since – Timeless Texts 》保持日期時間相關文本的相關性。例如,「我已經工作了 x 年。」在一年內就過時了。在你的文章中使用 years-since 外掛可以讓「x」保持最新並且使你的內容保持...。
  • Link Wrench 》Link Wrench可以在您的博客中的連結(錨點標籤)的內容中使用class“insidelink”的span進行包裝。您可以使用CSS對其進行樣式設置。, 插件的開發在github進行。...。

文章
Filter
Apply Filters
Mastodon