Glossary Term
get_post_timestamp()
3 tags
1 category
get_post_timestamp() — Retrieves 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.
Inputs: $post (int|WP_Post|null): Optional. Post ID or post object. Default is global $post object. $field (string): Optional. Published or modified time to use from database. Accepts ‘date’ or ‘modified’. Default ‘date’.
Returns int|false: Unix timestamp on success, false on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
