Set cookie with taxonomy name

Try hooking on the get_header action hook. That’s the last action hook before headers are output.

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