WordPress.org

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get the modified date

Description

Retrieve the date on which the post was last modified.

Usage

<?php get_the_modified_date$d$post ); ?>

Parameters

$d
(string) (optional) Optional PHP date format. Defaults to the "date_format" option.
Default:
$post
(int or WP_Post) (optional) Optional Post ID or WP_Post object. Defaults to current post.
Default: 'null'

Return Values

(string) 

Change Log

Since: 2.1.0

Source File

get_the_modified_time() is located in wp-includes/general-template.php

Related

the modified date()

get_calendar(), get_day_link(), get_month_link(), get_the_date(), get_the_time(), get_year_link(), single_month_title(), the_date(), the_date_xml(), the_modified_date(), get_the_modified_date(), the_modified_time(), get_the_modified_time(), the_time()