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.
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.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |