Used By
Used By | Description |
---|---|
wp-includes/general-template.php: the_date() | Display or Retrieve the date the current post was written (once per date) |
Determines whether the publish date of the current post in the loop is different from the publish date of the previous post in the loop.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
(int) 1 when new day, 0 if not a new day.
File: wp-includes/functions.php
function is_new_day() { global $currentday, $previousday; if ( $currentday !== $previousday ) { return 1; } else { return 0; } }
Version | Description |
---|---|
0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_new_day