Let's show the Twitter avatar (Twicon) to your user with those comments of you in the Web site.
Original filter can be set.
function set_twitter_id($twitter_id, $email = '') {
if ( $email == 'hoge@example.com' )
$twitter_id = 'hoge';
return $twitter_id;
}
add_filter('twitter_id/twicon.php', 'set_twitter_id', 10, 2);
function set_profile_image_url($profile_image_url, $id_or_email = '') {
if ( $id_or_email == 'fuga@example.com' )
$profile_image_url = get_option('siteurl') . '/images/fuga.png';
return $profile_image_url;
}
add_filter('profile_image_url/twicon.php', 'set_profile_image_url', 10, 2);
Requires: 2.5 or higher
Compatible up to: 2.7.1
Last Updated: 2011-10-21
Downloads: 2,056
Got something to say? Need help?