Where does Yoast SEO plugin sets the site/page title?

There’s a wpseo_title filter you can hook into. Example:

add_filter('wpseo_title', 'add_to_page_titles');
function add_to_page_titles($title) {
    $title .= $addToTitle;
    return $title;
}

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