Skip to main content
This page lists important actions and filters provided by TeraWallet.
HookTypeDescription
woo_wallet_before_transactionActionFires before a wallet transaction is created.
woo_wallet_after_transactionActionFires after a wallet transaction is recorded.
woo_wallet_cashback_amountFilterModify cashback amount before crediting wallet.
woo_wallet_partial_payment_enabledFilterEnable/disable partial payments dynamically.
👉 Example usage:
add_filter('woo_wallet_cashback_amount', function($amount, $order_id) {
    // Double cashback for VIP users
    if (user_is_vip(get_current_user_id())) {
        return $amount * 2;
    }
    return $amount;
}, 10, 2);