The following snippet will let you schedule events in your WordPress website.