“The Events Calendar” plugin by Modern Tribe in WordPress not working

I’m using the “The Events Calendar” plugin by Modern Tribe. I have the following code at the beginning of a php file that is loaded with an ajax get statement. Here’s the ajax call. It returns with a status of success, and “function does not exist” for the result. I’m baffled at this point. The … Read more

Set Date in a single line

You could use new GregorianCalendar(theYear, theMonth, theDay).getTime(): public GregorianCalendar(int year, int month, int dayOfMonth) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.

Calculate business days

Here’s a function from the user com ments on the date() function page in the PHP manual. It’s an improvement of an earlier function in the comments that adds support for leap years. Enter the starting and ending dates, along with an array of any holidays that might be in between, and it returns the … Read more