get_the_modified_date

SummerySummery

Retrieve the date on which the post was last modified.

Syntax

get_the_modified_date( string $format = '', int|WP_Post $post = null )

ParametersParameters

$format

(string) (Optional) PHP date format defaults to the date_format option if not specified.

Default value: ''

$post

(int|WP_Post) (Optional) Post ID or WP_Post object. Default current post.

Default value: null

ReturnReturn

(string|false) Date the current post was modified. False on failure.

SourceSource

File: wp-includes/general-template.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Added the $post parameter.
2.1.0 Introduced.
Scroll to Top