這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Date Tool

描述

This simple plugin makes it possible to insert the current date, time or date & time related information into your website. This is very handy if you are manually updating the date & time information and want to do this automatically in the future.

PLEASE Link to my website if you use this plugin, helps to keep my plugins FREE! dealshare.co.uk – Thank you!!!

Arbitrary section 1

安裝

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php do_action('plugin_name_hook'); ?> in your templates and use the ‘format’ argument to display the current date and time information in a number of different ways.

常見問題

What’s the easiest way to get this working after installation?

Simply insert the following code into your post to display the current year.

[datetool_current format=”Y”]
This displays: 2013

What else can you use in the ‘format’ argument to display the current date and time information?

For a complete reference and combinations you can visit this page: http://php.net/manual/en/function.date.php

Some examples…

Shortcode: [datetool_current format=”Y”]
Output: 2013 (or what the current year is)

Shortcode: [datetool_current format=”d”]
Output: 16 (or what number the current day is)

Shortcode: [datetool_current format=”jS F Y”]
Output: 24th June 2013 (or what number the current date is)

評價

There are no reviews for this plugin.

貢獻者及開發者

“Date Tool” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Date Tool 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2013-06-23 Plugin created.