Display attribute on shop page after the title

add_filter( 'the_title', 'YearOfMake', 10, 2 );
function YearOfMake( $title, $post_id ) 
{

    if ( get_post_type( $post_id ) != 'product' && ! is_archive() )
        return $title;

    if ( ! ( is_shop() || is_product_category() || is_product_tag() ) )
        return $title;
    /*
        global $product;
        $attribute="year-made";
        $abv        = $product->get_attribute($attribute);
        if(!empty($abv))
        {
            $title .= '<br /><p>' . $abv . '</p>';
        }
    */
    $terms  = wp_get_post_terms( $post_id, 'product_tag' );
    $term   = reset( $terms );
    if ( !empty( $term->name ))
    {
        $title .= '<br /><p>' . strtoupper( $term->name ) . '</p>';
    }
    return $title;
}

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