Title: Last Modified Timestamp
Author: Evan Mattson
Published: <strong>2012年1月11日</strong>
Last modified: 2025年8月16日

---

プラグインを検索

![](https://ps.w.org/last-modified-timestamp/assets/banner-772x250.jpg?rev=3200533)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/last-modified-timestamp/assets/icon-256x256.jpg?rev=3200533)

# Last Modified Timestamp

 作者: [Evan Mattson](https://profiles.wordpress.org/aaemnnosttv/)

[ダウンロード](https://downloads.wordpress.org/plugin/last-modified-timestamp.1.0.6.zip)

 * [詳細](https://ja.wordpress.org/plugins/last-modified-timestamp/#description)
 * [レビュー](https://ja.wordpress.org/plugins/last-modified-timestamp/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/last-modified-timestamp/#installation)
 * [開発](https://ja.wordpress.org/plugins/last-modified-timestamp/#developers)

 [サポート](https://wordpress.org/support/plugin/last-modified-timestamp/)

## 説明

This plugin adds information to the admin interface about when each post/page was
last modified (including custom post types!).

Enhanced areas:

 1. Page/post admin tables – added `Last Modified` column which is also sortable.
 2. Page/post edit screen (`post.php`) – added `Last modified on: *timestamp*` to `
    Publish` meta box.
 3. Admin messages after editing a page/post – ie: `Post updated. *timestamp* View 
    Post`,

No options currently available, but the output can be fully customized with filters
and the shortcode can be easily customized using attributes!

### Gutenberg, WordPress 5, and Beyond

This plugin does not yet enhance the new editor provided by Gutenberg and introduced
as the default editor in WordPress 5.0. No plans exist to add support for this although
it may be added in the future.
 Other areas of wp-admin enhanced by the plugin still
work, as does the classic editor.

## スクリーンショット

[⌊Page/post admin tables - added Last Modified column.⌉⌊Page/post admin tables -
added Last Modified column.⌉[

Page/post admin tables – added `Last Modified` column.

[⌊Page/post edit screen (post.php) - added Last modified on: *timestamp* to Publish
meta box.⌉⌊Page/post edit screen (post.php) - added Last modified on: *timestamp*
to Publish meta box.⌉[

Page/post edit screen (`post.php`) – added `Last modified on: *timestamp*` to `Publish`
meta box.

[⌊Admin messages after editing a page/post - ie: Post updated. *timestamp* View 
Post⌉⌊Admin messages after editing a page/post - ie: Post updated. *timestamp* View
Post⌉[

Admin messages after editing a page/post – ie: `Post updated. *timestamp* View Post`

## インストール

 1. Upload the `last-modified-timestamp` folder to the `/wp-content/plugins/` directory.
 2. WordPress の「プラグイン」メニューからプラグインを有効化してください

## FAQ

### How to add the last modified time to my page or post?

This plugin does not change the public facing appearance of your website, but gives
you a few ways to add this if you wish.

 1. Using the `[last-modified]` shortcode. See below.
 2. Using template functions in your theme or plugin. See below.

### How to provide the last modified time to search engines?

The best way to provide the last modified timestamp to search engines is by using
a plugin to add an XML sitemap for your website. This is a special kind of document
which provides various information to search engines about all the content on your
website, including when each was last modified. Many SEO plugins provide include
this functionality with them, but there are many standalone plugins for this as 
well. This allows search engines to reference a single file (which is automatically
kept up to date for you by the plugin) to know exactly what content has changed 
on your whole website since it was last indexed, rather than recrawling every page.

This plugin may be used to display the last modified date and time to a reader on
your website, but it is not intended as a tool for SEO.

### How to use the [last-modified] shortcode?

[last-modified] Returns the last modified timestamp in this format `date seperator
time`.

_Attributes (all optional)_

datef – specify a date format using the [PHP date format](http://www.php.net/manual/en/function.date.php).

timef – specify a time format using the [PHP date format](http://www.php.net/manual/en/function.date.php).

sep – specify the character/text you want to use to separate the date & time.

format – define the output format using placeholders `%date%`, `%time%`, and `%sep%`.
Other text can be used as well.

### How to change the outputted date/time format?

By default, the plugin mimicks the time & date formats used in the same context (
ie: admin tables, publish box) that WordPress uses.

As mentioned above, LMT uses PHP date format strings for the formatting of the outputted
date & time.

To customize the output with a shortcode, use the attributes as described above.

To customize the output in an admin context, a filter may be used.

 * **last_modified_timestamp_defaults** – allows default values to be filtered. 
   Shortcode attributes override defaults when present, otherwise there are defaults
   for shortcode output as well. Passes 1 parameter (array).

For example, if you wanted to change the time format in the admin messages that 
appear after a post is modified to a 24hr format with leading zeros, add this to
your theme’s functions.php:

    ```
    function my_lmt_defaults( $d ) {

        $d['contexts']['messages']['timef'] = 'H:i';

        return $d;
    }
    add_filter('last_modified_timestamp_defaults','my_lmt_defaults');
    ```

### Template Tags

Models the function naming convention used by WordPress for `get_the_content` / `
the_content` and similar functions.

 * `get_the_last_modified_timestamp()` – returns timestamp.
 * `the_last_modified_timestamp()` – displays/echos the timestamp.

These functions accept 2 arguments, both are optional:

 * `$context` (string) to output formatted according to a defined context (ie: admin
   messages, posts table, etc.)
 * `$override` (array) using this will override any defaults that are specified 
   here, but output can still be overriden at final output.
    Example array structure
   is: `array('datef' => 'M j, Y', 'timef' => 'g:i', 'sep' => '&rarr;', 'format'
   => '%date% %sep% %time%')`

## 評価

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

### 󠀁[Works well!](https://wordpress.org/support/topic/works-well-2652/)󠁿

 [brochite](https://profiles.wordpress.org/brochite/) 2022年11月3日

This plugin works well, despite my confusion with a conflicting plugin that did 
give some issues. Kudos to the plugin writer Evan for writing back to help me solve
an issue that wasn't his to solve!

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

### 󠀁[I use it ever day!](https://wordpress.org/support/topic/i-use-it-ever-day/)󠁿

 [bobsled](https://profiles.wordpress.org/bobsled/) 2022年7月27日

I've used this plugin for years now. It works like a charm and does exactly what
it says on the box.

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

### 󠀁[Useful, simple plugin!](https://wordpress.org/support/topic/useful-simple-plugin/)󠁿

 [ip-rob](https://profiles.wordpress.org/ip-rob/) 2020年7月8日

Great way to track modification dates of posts on my blog on the admin side while
giving the option of putting it on a post. I like that you can control if the modified
date shows up by inserting the shortcode but it doesn't do it automatically. Some
posts I don't want the modified date to be inserted if I'm fixing a typo or something
similar. Great plugin!

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

### 󠀁[Should be a standard feature](https://wordpress.org/support/topic/should-be-a-standard-feature/)󠁿

 [thingevery](https://profiles.wordpress.org/thingevery/) 2019年4月3日 1 reply

I added a privacy policy page to a client's website and wanted to automatically 
display when it was last updated. I was surprised to find this feature lacking from
WP. Searched and found this super simple plugin, and it worked great. Thanks!

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

### 󠀁[Simple & Effective](https://wordpress.org/support/topic/simple-effective-131/)󠁿

 [amreshkramar](https://profiles.wordpress.org/amreshkramar/) 2018年9月5日

An effective plugin for lasting bloggers.

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

### 󠀁[Essential for any blog](https://wordpress.org/support/topic/essential-for-any-blog/)󠁿

 [](https://profiles.wordpress.org/mitchellk/) 2018年8月18日 1 reply

I have a blog now 17 years old, THIS has proven to be the single most valuable plugin
for me. Works like a charm.

 [ 28件のレビューをすべて表示 ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## 貢献者と開発者

Last Modified Timestamp はオープンソースソフトウェアです。以下の人々がこのプラグ
インに貢献しています。

貢献者

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

“Last Modified Timestamp” は4ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Last Modified Timestamp” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/last-modified-timestamp/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/last-modified-timestamp/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/last-modified-timestamp/)
を [RSS](https://plugins.trac.wordpress.org/log/last-modified-timestamp/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.0.6

 * Fix notice about loading translations too early
 * Bump minimum required version of WP to 4.6

#### 1.0.5

 * Tweaked hook for testing
 * Integrated GitHub Actions

#### 1.0.4

 * Add automated tests

#### 1.0.3

 * Template function bugfix

#### 1.0.2

 * Min required WP bump to >= 3.2
 * PHP compatibility fix

#### 1.0.1

 * General housekeeping & maintanence
 * Tested against 3.8

#### 1.0

**Major Update**

 * Added support for all custom post types.
 * Added `[last-modified]` shortcode.
 * Added filters to provide complete control.
 * Added template tags.
 * Encapsulated code.

#### 0.4

 * Added support for other types of update messages.
 * Added filter to allow output to be customized.

#### 0.3.1

 * Fixed sortable column on pages table.

#### 0.3

 * The `Last Modified` column in the admin post/page tables is now sortable!
 * CSS – widened `Last Modified` column to account for extra width needed for sortable
   arrow.
 * Updated screenshot of `Last Modified` column in the admin post/page tables.
 * Corrected a typo in the admin messages for pages.

#### 0.2

 * Fixed date formatting in the admin tables.

#### 0.1

 * プラグインをリリース

## メタ

 *  バージョン **1.0.6**
 *  最終更新日 **1年前**
 *  有効インストール数 **6,000+**
 *  WordPress バージョン ** 4.6またはそれ以降 **
 *  検証済み最新バージョン: **6.8.12**
 *  PHP バージョン ** 5.3またはそれ以降 **
 *  言語
 * [Czech](https://cs.wordpress.org/plugins/last-modified-timestamp/)、[Danish](https://da.wordpress.org/plugins/last-modified-timestamp/)、
   [English (US)](https://wordpress.org/plugins/last-modified-timestamp/)、[Japanese](https://ja.wordpress.org/plugins/last-modified-timestamp/)、
   [Swedish](https://sv.wordpress.org/plugins/last-modified-timestamp/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)
 * タグ
 * [last-modified](https://ja.wordpress.org/plugins/tags/last-modified/)[modified time](https://ja.wordpress.org/plugins/tags/modified-time/)
   [page modified](https://ja.wordpress.org/plugins/tags/page-modified/)[post modified](https://ja.wordpress.org/plugins/tags/post-modified/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/last-modified-timestamp/advanced/)

## 評価

 5つ星中5つ星

 *  [  27 5-星レビュー     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## 貢献者

 *   [ Evan Mattson ](https://profiles.wordpress.org/aaemnnosttv/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/last-modified-timestamp/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LRA4JZYALHX82)