Return WP avatar inside a function

Replace the below line your code

return get_avatar( get_the_author_meta( 'ID' ), 32 ); 

to

return get_avatar_url( get_the_author_meta( 'ID' ) ); 

Hope this helps.

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