How to override hook from themes functions.php which is defined in plugin

plugins_loaded runs before the theme is loaded, so it will never be able to filter something that happens on this hook from a theme.

If you want something to do with post type registration to be filterable you should perform the registration on the init hook. This is the usual hook for post type registration and it will allow themes to use the filter.

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