mycred_format_number

Description

This filter is used to format a points value before it is displayed. You can use this filter to adjust how points are displayed before the value gets a prefix or suffix appended to it (if used). Not used in point calculations.

Available since version 1.0

Parameters

Param Type Required Description
$formatted int or float Yes

The point value formatted based on the point type setup.

$number int or float No

The original value.

$mycred obj No

The myCRED_Settings class object.

Used By

Package Prio. Description
Not used by any built-in package.

Examples

Example 1: Even though we use decimals, when displaying points, we always display them as integers.