private function get_event_details_from_post_title($title) { $event_details = explode('|', $title); $event_details = array_map('trim', $event_details); return array('timestamp' => (int) $event_details[0], 'action' => $event_details[1], 'instance' => $event_details[2]); }