get_post_time

get_post_time ( $d = 'U', $gmt = false, $post = null, $translate = false )

Parameters:
  • (string) $d Optional Either 'G', 'U', or php date format.
  • (bool) $gmt Optional, default is false. Whether to return the gmt time.
  • (int|object) $post Optional post ID or object. Default is global $post object.
  • (bool) $translate Whether to translate the time string
Returns:
  • (string)
Defined at:

Description

Retrieve the time at which the post was written.

Related Functions

get_post_type, get_post_meta, get_post_field, get_post_stati, get_post_types

Top Google Results

User discussions

wpseek mobile