开发者 | wokamoto |
---|---|
更新时间 | 2011年10月21日 14:52 |
捐献地址: | 去捐款 |
PHP版本: | 2.5 及以上 |
WordPress版本: | 2.7.1 |
<?php echo get_avatar( $id_or_email, $size = '96', $default = '<path_to_url>' ); ?>
See more. Using Gravatars
Localization
"Twicon for WordPress" has been translated into languages. Our thanks and appreciation must go to the following for their contributions:
twicon-for-wordpress
folder to the /wp-content/plugins/
directory.twicon
under the /wp-content/cache/
directory.<?php if (function_exists('twicon_input_box')) twicon_input_box(); ?>
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);