edit_{$taxonomy} | Hook

You are getting old version of the term, because edit_{$taxonomy} action is fired after the term is updated but before term’s cache is cleared. Use edited_{$taxonomy} hook, which fires your action after the term is updated and its cache is cleared.

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