In my plugin I hooked my function to
wp_loaded and there is a call to the function
comment_exists() which fires a Fatal Error. In which hook in the loading process I can be sure that the function would exist?
P.S.: I should hook my function to an action in loading process and before site is loaded completely.