Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Custom Social Count Plus Number Format

View functions.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?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
Something went wrong with that request. Please try again.