the_modified_time WordPress Filter Hook

The the_modified_time hook is a hook that is called when the post is first loaded and when the post is subsequently modified. It allows you to change the post's modified time.

apply_filters( 'the_modified_time', string|false $get_the_modified_time, string $format ) #

Filters the localized time a post was last modified, for display.


Parameters

$get_the_modified_time

(string|false)The formatted time or false if no post is found.

$format

(string)Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.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