get_post_modified_time ( $format = 'U', $gmt = false, $post = null, $translate = false )

  • (string) format Optional. Format to use for retrieving the time the post was modified. Accepts 'G', 'U', or PHP date format. Default 'U'.
  • (bool) gmt Optional. Whether to retrieve the GMT time. Default false.
  • (int|WP_Post) post Post ID or post object. Default is global `$post` object.
  • (bool) translate Whether to translate the time string. Default false.
  • (string|int|false) Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. False on failure.
Defined at:


Retrieves the time at which the post was last modified.

Related Functions

get_the_modified_time, get_the_modified_date, get_post_datetime, the_modified_time, get_lastpostmodified

Top Google Results

User discussions

wpseek mobile