mycred_apply_exchange_rate

Description

This filter allows you to change the results of the apply_exchange() class method in the myCRED_Settings object. This class method is used by the MarketPress and WooCommerce payment gateways to calculate the cost of an order in points.

Available since version 1.4

Parameters

Param Type Required Description
$exchange int or float Yes

The final exchange value.

$amount int or float No

The amount to be exchanged. Usually a real life currency.

$rate int or float No

The exchange rate being applied to $amount in order to get the $exchange.

$round bool No

Indicates if the amount should be rounded (TRUE) or not (FALSE).

Used By

Package Prio. Description
mycred/payment 10 MarketPress payment gateway.
mycred/payment 20 WooCommerce payment gateway.

Examples

No example found.