"What Happens Next" Box on GiveWP Receipts
Adds a friendly box after the GiveWP donation receipt with next steps, such as following you on social media or sharing the campaign, to keep donors engaged.
Opens WPIDE on
Code
$wpide_html = '<h3>Thank you!</h3><p>Your receipt is on its way by email. Want to do more? <a href="/volunteer/">Volunteer with us</a> or share this campaign with a friend.</p>';
add_action( 'give_payment_receipt_after_table', function () use ( $wpide_html ) {
echo '<div class="wpide-give-next" style="margin-top:1.5em;padding:1em 1.25em;border-radius:6px;background:rgba(102,187,106,.12)">' . wp_kses_post( $wpide_html ) . '</div>';
} );
Notes
Edit the HTML in $wpide_html; basic tags and links are allowed.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.