Custom Message on the EDD Purchase Receipt Page
Adds your own thank-you text, next steps or support details below the receipt that buyers see after an Easy Digital Downloads purchase.
Opens WPIDE on
Code
$wpide_edd_receipt_message = '<h3>What happens next?</h3><p>Your files are ready to download above and we have emailed you a copy of this receipt. Need help? Visit our <a href="/support/">support page</a>.</p>';
add_action( 'edd_order_receipt_after_table', function () use ( $wpide_edd_receipt_message ) {
echo '<div class="wpide-edd-receipt-message">' . wp_kses_post( do_shortcode( $wpide_edd_receipt_message ) ) . '</div>';
} );
Notes
Shortcodes and basic HTML are allowed in the message.
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.