Frontpage Forums Magaziner Social Count Plus Recommended Plugin Not Found Reply To: Social Count Plus Recommended Plugin Not Found

#1759
CHABAL Gregory
Participant

If you want to round the numbers (like 2K instead of 2108), you can use this code :

function my_custom_scp_number_format( $total ) {
	if ( $total > 1000000 ) {
		return round( $total / 1000000, 1 ) . 'M';
	} else if ( $total > 1000 ) {
		return round( $total / 1000, 1 ) . 'K';
	}

	return $total;
}

add_filter( 'social_count_plus_number_format', 'my_custom_scp_number_format' );

Once you purchase a product from alx.media, you will receive an account and access to the support forums.

Lost Password?