Show the terms of agreement by default in Easy Digital Downloads

This code snippet for Easy Digital Downloads will make the terms of agreement at checkout already expanded by default so the customer does not have to click the link to expand it.

A customer on the Easy Digital Downloads‘ forums wanted to show the terms of agreement on the checkout page without the customer having to click to expand it. This is useful when you don’t have much text (as in the case of the customer) or perhaps you simply want to include a link to the terms of agreement on another page.

The Code

Copy and paste the following function (mind the opening PHP tag) into your child theme’s functions.php file or custom plugin:

2 thoughts on “Show the terms of agreement by default in Easy Digital Downloads”

Leave a Reply

Your email address will not be published. Required fields are marked *