'tn', 1000000000 => 'bn', 1000000 => 'm', 1000 => 'k', ); foreach ( $thresholds as $value => $suffix ) { if ( $input >= $value ) { return round( $input / $value, 1 ) . $suffix; } } return (string) $input; } add_filter( 'tptn_post_count_only', 'tptn_restyle_count' );