添加社交网址 em> /
function author_spotlight_contactmethods( $contactmethods ) {
函数author_spotlight_contactmethods($ contactmethods){
if ( !isset( $contactmethods[‘twitter’] ) )
if(!isset($ contactmethods ['twitter']))
$contactmethods[‘twitter’] = ‘Twitter’;
$ contactmethods [‘twitter’] =‘Twitter’;
if ( !isset( $contactmethods[‘facebook’] ) )
if(!isset($ contactmethods [‘facebook’]))
$contactmethods[‘facebook’] = ‘Facebook’;
$ contactmethods [‘facebook’] =‘Facebook’;
if ( !isset( $contactmethods[‘linkedin’] ) )
if(!isset($ contactmethods [’linkedin']))
$contactmethods[‘linkedin’] = ‘LinkedIn’;
$ contactmethods [‘linkedin’] =‘LinkedIn’;
if ( !isset( $contactmethods[‘flickr’] ) )
if(!isset($ contactmethods ['flickr']))
$contactmethods[‘flickr’] = ‘Flickr’;
$ contactmethods [‘flickr’] =‘Flickr’;
if ( !isset( $contactmethods[‘myspace’] ) )
if(!isset($ contactmethods ['myspace']))
$contactmethods[‘myspace’] = ‘MySpace’;
$ contactmethods [‘myspace’] =‘MySpace’;
if ( !isset( $contactmethods[‘friendfeed’] ) )
if(!isset($ contactmethods ['friendfeed']))
$contactmethods[‘friendfeed’] = ‘Friendfeed’;
$ contactmethods [‘friendfeed’] =‘Friendfeed’;
if ( !isset( $contactmethods[‘delicious’] ) )
if(!isset($ contactmethods ['delicious']))
$contactmethods[‘delicious’] = ‘Delicious’;
$ contactmethods [‘delicious’] =‘Delicious’;
if ( !isset( $contactmethods[‘digg’] ) )
if(!isset($ contactmethods ['digg']))
$contactmethods[‘digg’] = ‘Digg’;
$ contactmethods ['digg'] ='Digg';
if ( !isset( $contactmethods[‘feed’] ) )
if(!isset($ contactmethods ['feed']))
$contactmethods[‘feed’] = ‘XML Feed’;
$ contactmethods ['feed'] ='XML Feed';
if ( !isset( $contactmethods[‘tumblr’] ) )
if(!isset($ contactmethods ['tumblr']))
$contactmethods[‘tumblr’] = ‘Tumblr’;
$ contactmethods [‘tumblr’] =‘Tumblr’;
if ( !isset( $contactmethods[‘youtube’] ) )
if(!isset($ contactmethods [‘youtube’]))
$contactmethods[‘youtube’] = ‘YouTube’;
$ contactmethods [‘youtube’] =‘YouTube’;
if ( !isset( $contactmethods[‘blogger’] ) )
if(!isset($ contactmethods ['blogger']))
$contactmethods[‘blogger’] = ‘Blogger’;
$ contactmethods [‘blogger’] =‘Blogger’;
if ( !isset( $contactmethods[‘googleplus’] ) )
if(!isset($ contactmethods ['googleplus']))
$contactmethods[‘googleplus’] = ‘Google+’;
$ contactmethods [‘googleplus’] =‘Google+’;
if ( !isset( $contactmethods[‘instagram’] ) )
if(!isset($ contactmethods [‘instagram’]))
$contactmethods[‘instagram’] = ‘Instagram’;
$ contactmethods [‘instagram’] =‘Instagram’;
if ( !isset( $contactmethods[‘slideshare’] ) )
if(!isset($ contactmethods ['slideshare']))
$contactmethods[‘slideshare’] = ‘Slideshare’;
$ contactmethods ['slideshare'] ='Slideshare';
if ( !isset( $contactmethods[‘stackoverflow’] ) )
if(!isset($ contactmethods ['stackoverflow']))
$contactmethods[‘stackoverflow’] = ‘Stackoverflow’;
$ contactmethods [‘stackoverflow’] =‘Stackoverflow’;
if ( !isset( $contactmethods[‘posterous’] ) )
if(!isset($ contactmethods ['posterous']))
$contactmethods[‘posterous’] = ‘Posterous’;
$ contactmethods [‘posterous’] =‘Posterous’; p>
return $contactmethods; 返回$ contactmethods;
code> pre>
}
} p>
add_filter(‘user_contactmethods’,’author_spotlight_contactmethods’);
add_filter('user_contactmethods','author_spotlight_contactmethods'); p>