by Michael Beckwith on WordPress.org
Registers shortcodes for your posts, pages, or post types that display user profile links to various social media websites.
This plugin registers shortcodes for the following websites, social service on the left, format for the shortcode on the right:
Service / shortcode version
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 );