wp_redirect on base wp-admin and login

Hooking to admin_init is what you want, for doing a redirect while inside admin. So you’d need both – that one, and the hook to template_redirect for the front-end handler.

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