Is it possible to somehow setback the date of the current_time function in wordpress?
Right now i am using it like this:
$time = current_time('mysql');
I would like to get the same year, month and time.. but set back the day with for example 2.
Any ideas guys? 🙂
Thanks
It works just like current_time(), except that you pass it a number of days:
Note that if you didn’t need the
$typeand$gmtoptions that current_time() provides, you could use this instead: