函数原型
is_new_day(): int
函数描述
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.
函数位置
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. |

