
內容簡介
這個外掛將為以下的網站和社交服務註冊短代碼,左邊為服務名稱,右邊為代碼格式:
服務/代碼版本
Blogger [blogger]
BookHype [bookhype]
Colourlovers [colourlovers]
DeviantArt [deviantart]
Digg [digg]
Dribbble [dribbble]
Etsy [etsy]
Facebook [facebook]
Flickr [flickr]
Flipboard [flipboard]
GitHub [github]
Goodreads [goodreads]
HackerNews [hackernews]
IMDb [imdb]
Instagram [instagram]
Last.FM [lastfm]
LinkedIn [linkedin]
Myspace [myspace]
Patreon [patreon]
Pinterest [pinterest]
Reddit [reddit]
Slideshare [slideshare]
Soundcloud [soundcloud]
TikTok [tiktok]
Twitch [twitch]
Twitter [twitter]
Vimeo
Yelp [yelp]
YouTube
所有範例已更新至 v1.1 版本
範例1:
[twitter name="JoeSomeone" text="some text you want the link to appear as"]
結果為:
<a href="http://www.twitter.com/JoeSomeone" title="JoeSomeone's Twitter profile" class="twitter_smsc">some text you want the link to appear as</a>
呈現在您的文章/頁面上
範例2:
[twitter name="JoeSomeone"]
結果為:
<a href="http://www.twitter.com/JoeSomeone" title="JoeSomeone's Twitter profile" class="twitter_smsc">JoeSomeone (Twitter)</a>
呈現在您的文章/頁面上
範例3:
[twitter name="JoeSomeone" target="_blank"]
結果為:
<a href="http://www.twitter.com/JoeSomeone" title="JoeSomeone's Twitter profile" target="_blank" class="twitter_smsc">JoeSomeone (Twitter)</a>
呈現在您的文章/頁面上
外掛標籤
開發者團隊
原文外掛簡介
This plugin registers shortcodes for the following websites, social service on the left, format for the shortcode on the right:
Service / shortcode version
Blogger [blogger]
BookHype [bookhype]
Colourlovers [colourlovers]
DeviantArt [deviantart]
Digg [digg]
Dribbble [dribbble]
Etsy [etsy]
Facebook [facebook]
Flickr [flickr]
Flipboard [flipboard]
GitHub [github]
Goodreads [goodreads]
HackerNews [hackernews]
IMDb [imdb]
Instagram [instagram]
Last.FM [lastfm]
LinkedIn [linkedin]
Myspace [myspace]
Patreon [patreon]
Pinterest [pinterest]
Reddit [reddit]
Slideshare [slideshare]
SpaceHey [spacehey]
Soundcloud [soundcloud]
TikTok [tiktok]
Twitch [twitch]
Twitter [twitter]
Vimeo
X [x]
Yelp [yelp]
YouTube
All examples updated for v1.1
Example 1:
[twitter name="JoeSomeone" text="some text you want the link to appear as"]
results in this on your post/page:
some text you want the link to appear as
Example 2:
[twitter name="JoeSomeone"]
results in this on your post/page.
JoeSomeone (Twitter)
Example 3:
[twitter name="JoeSomeone" target="_blank"]
results in on your post/page.:
JoeSomeone (Twitter)
Filters:
function example_add_site( $sites ) {
$sites['somesite'] = array( 'Some Site', 'http://www.somesite.com/user/' );
//Return the $sites array
return $sites;
}
add_filter( 'smsc_shortcodes', 'example_add_site' );
function example_add_classes( $classes ) {
$classes[] = 'someclass';
return $classes;
}
add_filter( 'smsc_classes', 'example_add_classes' );
function example_change_final_link( $output, $shortcode ) {
if ( 'somesite' == $shortcode ) {
$output_new = $output . ' <--Awesome profile!';
}
return $output_new;
}
add_filter( 'smsc_final_link', 'example_change_final_link', 10, 2 );
