mycred_parse_tags_amount

Codex / mycred/log / Filters / mycred_parse_tags_amount

Description

This filter allows you to adjust or add your own custom amount related template tag, to use in log entries. Should be used in combination with the mycred_has_tags filter in order to work.

Available since version 1.0

Parameters

Param Type Required Description
$content string Yes

The rendered log entry string.

$amount int or float No

The original point amount.

$mycred obj No

The myCRED point type object.

Used By

Package Prio. Description
mycred/core 10 Used by the myCRED_Settings class.

Example

Example 1: Add a custom template tag that renders the points amount with a dollar sign.

Last edited August 5, 2016