関数 is_new_day()
定義ファイル :/blog/wp-includes/functions.php 4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | /** * Whether the publish date of the current post in the loop is different from the * publish date of the previous post in the loop. * * @since 0.71 * * @global string $currentday The day of the current post in the loop. * @global string $previousday The day of the previous post in the loop. * * @return int|bool 1|true when new day, 0|false if not a new day. */ function is_new_day() { global $currentday, $previousday; if ( $currentday != $previousday ) return 1; else return 0; } |