get_post_modified_time


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

Parameters:
  • (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.
Returns:
  • (string|int|false) Formatted date string or Unix timestamp if `$format` is 'U' or 'G'. False on failure.
Defined at:

Description

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