Title: [Plugin: Tweetbacks] get_avatar function and comment_type
Last modified: August 19, 2016

---

# [Plugin: Tweetbacks] get_avatar function and comment_type

 *  [edeleon](https://wordpress.org/support/users/edeleon/)
 * (@edeleon)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-tweetbacks-get_avatar-function-and-comment_type/)
 * Could be a good idea to have on the settings to add a list of comment_types to
   get the avatar, i’m using tweetback and using the comment_type to css the tweets
   coming from Twitter and I’m using a new Facebook connect plugin and using the
   comment_type as ‘facebook’ to css the comments from there.
 * I changed the line where u check if the comment_type is ‘tweetback’ to this, 
   but i think you can add a list
 * `if ( isset($id_or_email->comment_type) && '' != $id_or_email->comment_type &&'
   comment' != $id_or_email->comment_type && 'tweetback' != $id_or_email->comment_type&&'
   facebook' != $id_or_email->comment_type )`
 * Yo can see and example of this on
 * [http://www.lacomuna.tv/episodio/lacomunatv-001-tribal/#comment-119](http://www.lacomuna.tv/episodio/lacomunatv-001-tribal/#comment-119)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * (@joostdevalk)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-tweetbacks-get_avatar-function-and-comment_type/#post-956902)
 * My tweetbacks plugin actually rewrites the get_avatar function to do just that,
   though it doesn’t include facebook, of course.
 *  Thread Starter [edeleon](https://wordpress.org/support/users/edeleon/)
 * (@edeleon)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-tweetbacks-get_avatar-function-and-comment_type/#post-956968)
 * But i think it could be good to add a field on the settings page to let the user
   add as many types as they want, i’m sure some other plugins can use this kind
   of “pingbacks” from other apps.
 * TIA
 *  [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * (@joostdevalk)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-tweetbacks-get_avatar-function-and-comment_type/#post-957094)
 * Could be, but that’s not the goal of my plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Tweetbacks] get_avatar function and comment_type’ is closed 
to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joost de Valk](https://wordpress.org/support/users/joostdevalk/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/plugin-tweetbacks-get_avatar-function-and-comment_type/#post-957094)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
