function dpProEventCalendar_getDate() { $nonce = $_POST['postEventsNonce']; //if ( ! wp_verify_nonce( $nonce, 'ajax-get-events-nonce' ) ) // die ( 'Busted!'); if (!is_numeric($_POST['date'])) { die; } $timestamp = $_POST['date']; $calendar = $_POST['calendar']; $category = $_POST['category']; $event_id = $_POST['event_id']; $author = $_POST['author']; $is_admin = $_POST['is_admin']; if ($is_admin && strtolower($is_admin) !== "false") { $is_admin = true; } else { $is_admin = false; } require_once 'classes/base.class.php'; $dpProEventCalendar = new DpProEventCalendar($is_admin, $calendar, $timestamp, null, '', $category, $event_id, $author); die($dpProEventCalendar->monthlyCalendarLayout()); }