Hey Kadi,
Thanks for reaching out.
Doing this is indeed technically possible, but I should note that the “Edit event” links will ONLY be visible if the current user on the site is a logged-in user of the administrator or editor level. If they are not logged in, or ARE logged in but are of the “subscriber”, “author”, or “contributor” user level, the edit link will not show.
Is this still something you’d be interested in? We cannot help with writing custom code as per our support policy, but I can definitely point you in the right direction. You’ll want to use the WordPress function get_edit_post_link() which you can read about here → https://codex.wordpress.org/Template_Tags/get_edit_post_link
Let me know if what I described above is not sufficient; if you need that edit link visible to ALL site visitors, then unfortunately a much, much more complex customization would be required. 🙁
— George