Created
April 20, 2013 02:16
-
-
Save claudiosanches/5424439 to your computer and use it in GitHub Desktop.
Custom Social Count Plus Number Format
This file contains hidden or 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 | |
/** | |
* Custom Social Count Plus Number Format. | |
* | |
* @param int $number Default number. | |
* | |
* @return float New formated number. | |
*/ | |
function custom_social_count_plus_number_format( $number ) { | |
return number_format( $number, 0, '', ',' ); | |
} | |
add_filter( 'social_count_plus_number_format', 'custom_social_count_plus_number_format' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment