is_new_day()

最后更新于:2021-11-27 09:27:39

is_new_day()

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.

响应

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

源文件

文件: gc-includes/functions.php

function is_new_day() {
	global $currentday, $previousday;

	if ( $currentday !== $previousday ) {
		return 1;
	} else {
		return 0;
	}
}