Skip to main content

benecaster_after_donation_confirmation

Action Free

Fires immediately after the thank-you message HTML within the confirmation screen. Use to inject content below the message — social share buttons, a link to subscriber benefits, a follow-up action CTA.

In the button and icon pop-ups, the confirmation shown is a copy of the hidden original. Element ids appear twice on the page, and a <script> inside your markup does not run again when the copy is shown, so attach behaviour by class from a script outside the hook output. It fires once, at page render, with $amount 0.0 and $currency USD whatever the show’s currency; use benecaster_donation_received for the real donation.

Parameters

Name Type Default Description
$show_id int — ID of the show
$amount float — Donation amount in major units
$currency string — ISO 4217 currency code, lowercase

Need this built rather than just documented? See our services →