Skip to content

Instantly share code, notes, and snippets.

@claudiosanches
Created April 20, 2013 02:16
Show Gist options
  • Save claudiosanches/5424439 to your computer and use it in GitHub Desktop.
Save claudiosanches/5424439 to your computer and use it in GitHub Desktop.
Custom Social Count Plus Number Format
<?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