Can we use corePHP code in wordpress?

Yes, you can use ‘normal PHP’. It is not necessary to use object-oriented PHP. Also, WordPress is not all OOP, a lot of it is just functions and functional based programming.

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