Plugin Development - Call to undefined function comment_exists()

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.

Topic function-exists plugin-development hooks Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.