Title: Last Modified Timestamp
Author: Evan Mattson
Published: <strong>2012(&#101;)k&#111; urtarrila&#114;&#101;&#110; 11(&#97;)</strong>
Last modified: 2025(&#101;)k&#111; abuztua&#114;&#101;&#110; 16(&#97;)

---

Bilatu pluginak

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

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

# Last Modified Timestamp

 [Evan Mattson](https://profiles.wordpress.org/aaemnnosttv/)-(r)en eskutik

[Deskargatu](https://downloads.wordpress.org/plugin/last-modified-timestamp.1.0.6.zip)

 * [Xehetasunak](https://eu.wordpress.org/plugins/last-modified-timestamp/#description)
 * [Berrikuspenak](https://eu.wordpress.org/plugins/last-modified-timestamp/#reviews)
 *  [Instalazioa](https://eu.wordpress.org/plugins/last-modified-timestamp/#installation)
 * [Garapena](https://eu.wordpress.org/plugins/last-modified-timestamp/#developers)

 [Laguntza](https://wordpress.org/support/plugin/last-modified-timestamp/)

## Deskripzioa

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.

## Pantaila-argazkiak

 * [[
 * Page/post admin tables – added `Last Modified` column.
 * [[
 * 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`

## Instalazioa

 1. Upload the `last-modified-timestamp` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## MEG

### 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%')`

## Berrikuspenak

![](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(e)ko azaroaren 3(a)

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(e)ko uztailaren 27(a)

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(e)ko uztailaren 8(a)

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(e)ko apirilaren 3(
a) 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(e)ko irailaren
5(a)

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(e)ko abuztuaren 18(a) 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.

 [ Irakurri 28 berrikuspenak ](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## Laguntzaileak eta Garatzaileak

“Last Modified Timestamp” software librea da. Ondoko pertsonek egin dizkiote ekarpenak
plugin honi.

Laguntzaileak

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

Last Modified Timestamp 3 eskualde-ezarpenetara itzuli da. Eskerrik asko [itzultzaileei](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp/contributors)
beraien ekarpenengatik.

[Itzul zaitez Last Modified Timestamp zure hizkuntzara.](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)

### Garapena interesatzen zaizu?

[Araka kodea](https://plugins.trac.wordpress.org/browser/last-modified-timestamp/),
begiratu [SVN biltegia](https://plugins.svn.wordpress.org/last-modified-timestamp/)
edo harpidetu [garapen erregistrora](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)
bidez.

## Aldaketen loga

#### 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

 * Lehen bertsioa

## Meta

 *  Version **1.0.6**
 *  Azken eguneraketa **duela 8 hilabete**
 *  Instalazio aktiboak **7.000+**
 *  WordPress bertsioa ** 4.6 edo handiagoa **
 *  **6.8.5** (e)raino probatuta.
 *  PHP bertsioa ** 5.3 edo handiagoa **
 *  Hizkuntzak
 * [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/), eta [Swedish](https://sv.wordpress.org/plugins/last-modified-timestamp/).
 *  [Itzuli zure hizkuntzara](https://translate.wordpress.org/projects/wp-plugins/last-modified-timestamp)
 * Etiketak
 * [last-modified](https://eu.wordpress.org/plugins/tags/last-modified/)[modified time](https://eu.wordpress.org/plugins/tags/modified-time/)
   [page modified](https://eu.wordpress.org/plugins/tags/page-modified/)[post modified](https://eu.wordpress.org/plugins/tags/post-modified/)
 *  [Ikuspegi aurreratua](https://eu.wordpress.org/plugins/last-modified-timestamp/advanced/)

## Balorazioak

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/last-modified-timestamp/reviews/)

## Laguntzaileak

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

## Laguntza

Zerbait duzu esateko? Laguntza behar?

 [Ikusi laguntza foroa](https://wordpress.org/support/plugin/last-modified-timestamp/)

## Egizu eskaintza

Plugin honen aurrerabidearen euskarri izan nahi duzu?

 [ Egiozu eskaintza plugin honi ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LRA4JZYALHX82)