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


(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.


(string) The method ID.


(LLMS_Transaction) The transaction object.


(float) The refund amount.


(string) The user-submitted refund note.

Top ↑

Source Source

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

View on GitHub

Top ↑

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.