Should everything in functions.php be hooked or filtered?

It can be used for much about anything that requires php…

You’d only use hooks if you don’t want to execute the php logic immediately. This is usually the case, but not always.

Likewise, you’d typically use the WP API. But not always either…

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