apply_filters( "llms_{$method}_refund_id", string|boolean|WP_Error $refund_id, string $method, LLMS_Transaction $transaction, float $amount, string $note )

Filters the refund ID for custom refund methods.


Description Description

This filter should return a string representing the refund ID as generated by the custom refund method.

The dynamic portion of this hook, {$method}, represents the ID of the custom refund method.


Top ↑

Parameters Parameters

$refund_id

(string|boolean|WP_Error) The generated refund ID or an error object. Returning a falsy value will result in the default error handling and no refund being recorded.

$method

(string) The method ID.

$transaction

(LLMS_Transaction) The transaction object.

$amount

(float) The refund amount.

$note

(string) The user-submitted refund note.


Top ↑

Source Source

File: includes/models/model.llms.transaction.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.