How to apply filter

Just put the code inside functions.php that lives in your theme folder:

wp-content/themes/[your-active-theme-name]/functions.php

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