How can I execute functions when I open a level in editor

Hello, I want to know which is the function that is executed when a level is open in editor because I need to do several checks in the level. Thanks you so much!