首页 WordPress函数大全 get_lastpostmodified()

get_lastpostmodified()

2020-05-01 / 4149阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_lastpostmodified( string $timezone = 'server', string $post_type = 'any' )

Get the most recent time that a post>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

The server timezone is the default and is the difference between GMT and server time. The ‘blog’ value is just when the last post was modified. The ‘gmt’ is when the last post was modified in GMT time.

参数

$timezone

(string)
(Optional)
The timezone for the timestamp. See get_lastpostdate() for information>Default value: 'server'

$post_type

(string)
(Optional)
The post type to check.

Default value: 'any'

返回

(string) The timestamp in 'Y-m-d H:i:s' format, or false on failure.

大家谈论
    我的见解