Add Text Above Receipt on Confirmation Page – Easy Digital Downloads

This is how you can insert custom text above the receipt at the top of the Purchase Confirmation page in Easy Digital Downloads.

This will be added to the output of the [edd_receipt] shortcode so that it only appears when a receipt appears. This is better than adding your custom message directly into the page editor.

The message in this example will say this:

Thank you for your purchase! A copy of this receipt will be emailed to you within a few minutes. It will contain download links to the items you purchased. If you are a registered user and logged in, you may also download your purchases from your account page at any time.

You can edit the message on line 4 of the code below. The following PHP code snippet goes into your functions.

PHP

function isa_edd_receipt_before() {
     ?>
     <div class="edd-alert edd-alert-success">
     	<p>Thank you for your purchase! A copy of this receipt will be emailed to you within a few minutes. It will contain download links to the items you purchased. If you are a registered user and logged in, you may also download your purchases from your <a href="#">account page</a> at any time.
     	</p>
     </div>
     <?php
}
add_action( 'edd_payment_receipt_before', 'isa_edd_receipt_before' );

See more:

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]