mycred_label_my_balance

Codex / mycred/balance / Filters / mycred_label_my_balance

Description

This filter allows you to change how a users balance is displayed in the toolbar (if used). The default layout used is: %plural%: %cred_f%. You can use any general template tags or amount related template tags.

Available since version 1.3.1

Parameters

Param Type Required Description
$template string Yes

The template string.

$user_id int No

The ID of the users balance we are showing.

$point_type string No

The point type used.

Used By

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

Example

Example 1: Change the template to show the word ``Your Balance`` followed by the users balance.

Last edited June 26, 2016