Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active February 27, 2016 03:04
Show Gist options
  • Save lorenzocaum/d189af61c5e627fbdf47 to your computer and use it in GitHub Desktop.
Save lorenzocaum/d189af61c5e627fbdf47 to your computer and use it in GitHub Desktop.
How to add a message after the checkout button on the checkout page in Easy Digital Downloads

Add the sample code below to your child theme's functions.php file or in a site specific plugin.

<?php
//* Do NOT include the opening php tag

//* Add secure processing message to checkout for Easy Digital Downloads
function edd_checkout_secure_messaging() {
?>
	<p style="font-size:small;text-align:center;padding-top:15px;"><span class="dashicons dashicons-lock"></span> Your transaction will be securely processed.</p>
<?php
}
add_action( 'edd_purchase_form_after_submit', 'edd_checkout_secure_messaging' );

Preview: http://cl.ly/2c461Y260C3I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment