Last active
February 8, 2016 12:02
-
-
Save ashleyfae/f00b5101466752213e2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Naked Social Share Add-On | |
* Plugin URI: https://www.nosegraze.com | |
* Description: Demonstrates how to changes the Font Awesome icons used in Naked Social Share. | |
* Version: 1.0 | |
* Author: Nose Graze | |
* Author URI: https://www.nosegraze.com | |
* License: GPL2 | |
* | |
* @package nss-addon | |
* @copyright Copyright (c) 2016, Nose Graze Ltd. | |
* @license GPL2+ | |
*/ | |
/** | |
* Change Twitter Icon | |
* | |
* Changes the Twitter icon to be square. Include the full HTML markup | |
* for Font Awesome. | |
* | |
* Other filter names are: | |
* | |
* + Twitter: naked_social_share_twitter_icon | |
* + Facebook: naked_social_share_facebook_icon | |
* + Pinterest: naked_social_share_pinterest_icon | |
* + StumbleUpon: naked_social_share_stumbleupon_icon | |
* + Google+: naked_social_share_google_icon | |
* + LinkedIn: naked_social_share_linkedin_icon | |
* | |
* @param string $icon_html | |
* | |
* @return string | |
*/ | |
function nss_addon_twitter_icon( $icon_html ) { | |
return '<i class="fa fa-twitter-square"></i>'; | |
} | |
add_filter( 'naked_social_share_twitter_icon', 'nss_addon_twitter_icon' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment