get_the_modified_date WordPress Filter Hook

The get_the_modified_date Wordpress hook is used to return the date when a post was last modified. This can be useful for displaying freshness on a blog or news site. The function takes one argument, which is the format of the date to be returned.

apply_filters( 'get_the_modified_date', string|int|false $the_time, string $format, WP_Post|null $post ) #

Filters the date a post was last modified.


Parameters

$the_time

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

$format

(string)PHP date format.

$post

(WP_Post|null)WP_Post object or null if no post is found.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Added the $post parameter.
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