About wp database hooks (error establishing connection)

Fixed, done a little bit different implementation of the problem fix, without hooks. TC.

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