Why are my constants not available outside my class?

Your constant is defined in the “plugins_loaded” action, but you are trying to access it before that action gets to be executed.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)