_get_last_post_time


_get_last_post_time ( $timezone, $field, $post_type = 'any' )

Access:
  • private
Parameters:
  • (string) timezone The timezone for the timestamp. See get_lastpostdate(). for information on accepted values.
  • (string) field Post field to check. Accepts 'date' or 'modified'.
  • (string) post_type Optional. The post type to check. Default 'any'.
Returns:
  • (string|false) The timestamp in 'Y-m-d H:i:s' format, or false on failure.
Defined at:
Change Log:
  • 4: .

Description

Gets the timestamp of the last time any post was modified or published.

Related Functions

get_post_time, get_lastpostdate, get_lastpostmodified, get_post_datetime, get_post_timestamp

Top Google Results

User discussions

wpseek mobile