Core Function
View Source on Trac ↗ wp_resolve_post_date()
wp_resolve_post_date( mixed $post_date = '', mixed $post_date_gmt = '' ) Uses wp_checkdate to return a valid Gregorian-calendar value for post_date.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $post_date string | The date in mysql format (`Y-m-d H:i:s`). |
| $post_date_gmt string | The GMT date in mysql format (`Y-m-d H:i:s`). |
Return Value
((string)
| false) A valid Gregorian-calendar date string, or false on failure.
Function Information
Since Version
5.7.0
Source File
wp-includes/post.php
Advertisement