wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_time › WordPress Function

Since2.0.0
Deprecatedn/a
get_post_time ( $format = 'U', $gmt = false, $post = null, $translate = false )
Parameters: (4)
  • (string) $format Optional. Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format. Default 'U'.
    Required: No
    Default: 'U'
  • (bool) $gmt Optional. Whether to retrieve the GMT time. Default false.
    Required: No
    Default: false
  • (int|WP_Post|null) $post Post ID or post object. Default is global `$post` object.
    Required: No
    Default: null
  • (bool) $translate Whether to translate the time string. Default false.
    Required: No
    Default: false
Returns:
  • (string|int|false) Formatted date string or Unix timestamp if `$format` is 'U' or 'G'.
    False on failure.
Defined at:
Codex:

Retrieves the localized time of the post.



Source

Soon...