function dpProEventCalendar_getEvents() { $nonce = $_POST['postEventsNonce']; //if ( ! wp_verify_nonce( $nonce, 'ajax-get-events-nonce' ) ) // die ( 'Busted!'); if (!isset($_POST['date'])) { die; } $date = $_POST['date']; $calendar = $_POST['calendar']; $category = $_POST['category']; $event_id = $_POST['event_id']; $author = $_POST['author']; require_once 'classes/base.class.php'; $dpProEventCalendar = new DpProEventCalendar(false, $calendar, null, null, '', $category, $event_id, $author); die($dpProEventCalendar->eventsListLayout($date)); }