Skip to main content

benecaster_before_donation_confirmation

Action Free

Fires during shortcode rendering when the (initially hidden) confirmation screen HTML is built. Content echoed here appears above the configurable thank-you message. Revealed client-side after payment succeeds.

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 →