mycred_pt_get_fee

Description

When using the Transfer Plus add-on in myCRED, you can select to charge a fee for each transfer a user makes on your website. This filter allows you to adjust the fee amount for each transfer based on your preference.

Available since version 1.0

Parameters

Param Type Required Description
$fee int or float Yes

The fee amount in points. Use zero for no fee.

$amount int or float No

The amount of points a user is transferring.

$user_id int No

The numeric ID of the user that is making the transfer.

$point_type string No

The point type key of the point type we are transferring.

$prefs array No

The fee feature settings.

Used By

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

Examples

Example 1: Charge a custom fee based on a users WordPress role when making a transfer in myCRED.

Example 2: Charge a custom fee based on a users myCRED rank when making a transfer in myCRED.