WPDev.one
Core Function
View Source on Trac ↗

get_the_modified_time()

get_the_modified_time( mixed $format = '', mixed $post = null )

Retrieves the time at which the post was last modified.

Parameters 2 required

Name / Type Description
string

$format Optional. Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format. Defaults to the 'time_format' option.

Required
(int

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

Required

Return Value

((string)
| int | false) Formatted date string or Unix timestamp. False on failure.

Function Information

Since Version
2.0.0
Source File
wp-includes/general-template.php
Advertisement