2020-05-01 / 3912阅 / 悠然
Retrieve post published or modified time as a Unix timestamp.
Note that this function returns a true Unix timestamp, not summed with timezone offset like older WP functions.
(int|WP_Post)
(Optional)
WP_Post object or ID. Default is global $post object.
Default value: null
(string)
(Optional)
Published or modified time to use from database. Accepts 'date' or 'modified'.
Default value: 'date'
(int|false) Unix timestamp on success, false on failure.