Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created October 22, 2015 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/92d733ec6e89f5c040e2 to your computer and use it in GitHub Desktop.
Save billerickson/92d733ec6e89f5c040e2 to your computer and use it in GitHub Desktop.
<?php
/**
* SharedCount Icons
*
*/
function be_sharedcount_icons( $link ) {
if( in_array( $link['type'], array( 'facebook', 'facebook_likes', 'facebook_shares' ) ) )
$link['icon'] = 'icon-facebook';
if( 'twitter' == $link['type'] ) {
$link['icon'] = 'icon-twitter';
$link['count'] = 'Tweet';
}
if( 'google' == $link['type'] )
$link['icon'] = 'icon-googleplus';
if( 'print' == $link['type'] ) {
$link['icon'] = 'icon-print';
$link['count'] = 'Print';
}
return $link;
}
add_filter( 'ea_share_count_link', 'be_sharedcount_icons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment