[wp-hackers] Is today a new day?! - is_new_day()

Austin Matzko austin at ilfilosofo.com
Thu May 20 09:31:17 UTC 2010


On Thu, May 20, 2010 at 4:09 AM, Mo Braga <Mo.Braga at lbi.com> wrote:
> How about this: You want something (eg a counter) to be reset at the first time somebody accesses your site, every day.

I think the name of the function "is_new_day()" might be giving you
the wrong impression of its behavior, as it does *not* vary according
to the time at which someone visits. Rather, it has to do with the
date of the current post in the Loop.


More information about the wp-hackers mailing list