Last Modified

25th of March, 2007 Håvard

/*
Plugin Name: HH Last Modified
Plugin URI: http://hvassing.com/my-projects/last-modified/
Description: Displays the date and time that the post/page was last modified, given that it has been changed after its publishing date.
Based on the script "Last Modified" by Nick Morik, version 1.11
Version: 1.0
Author: Håvard Hvassing
Author URI: http://hvassing.com
*/

Usage

[php]hh_last_modified('before', 'after', 'format');[/php]

Example

[php]hh_last_modified('(Last modified: ', ')', 'jS \o\f F, Y');[/php]

Parameters

$before
(string) Text to place before the date. Default is empty.
$after
(string) Text to place after the date. Default is empty.
$format
(string) The format for the date. Defaults to the date format configured in your WordPress options. See Formatting Date and Time.

0 Responses to “Last Modified”

  1. No Comments

Leave a Reply




XHTML: You can use these tags <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> :
If you want to include PHP-code you can do so by writing <code>[php]my_function()</code>

Related

Back to My Projects