the_modified_date WordPress Filter Hook

The modified date is a hook that is used to display the date on which a post or page was last modified. This can be useful for showing how recent a piece of content is, or for indicating when something has been updated.

apply_filters( 'the_modified_date', string|false $the_modified_date, string $format, string $before, string $after ) #

Filters the date a post was last modified for display.


Parameters

$the_modified_date

(string|false)The last modified date or false if no post is found.

$format

(string)PHP date format.

$before

(string)HTML output before the date.

$after

(string)HTML output after the date.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More