Recent

tptn_number_format_abbreviationsfilter

tptn_number_format_abbreviations

Filters the abbreviation thresholds and suffixes.

Type: filter
Since: 4.4.0
Source: includes/util/class-helpers.php line 150

Parameters

Type Name Description
array $abbreviations Array of divisor => suffix pairs, checked in descending order of divisor.
float $number The number being abbreviated.

Usage

add_filter( 'tptn_number_format_abbreviations', function($abbreviations, $number) {
    // ...
    return $abbreviations;
} );