Whether the publish date of the current post in the loop is different from the publish date of the previous post in the loop.

Description Description

Return Return

(int) 1 when new day, 0 if not a new day.

Top ↑

Source Source

File: wp-includes/functions.php

function is_new_day() {
	global $currentday, $previousday;
	if ( $currentday != $previousday )
		return 1;
		return 0;

Top ↑

Changelog Changelog

Version Description
0.71 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.