Easy Digital Downloads allows you to display terms that the customer must accept at checkout before the purchase can be made. By clicking the show terms link, the customer can read the terms text that appears, and then click the checkbox to agree to those terms.
In some cases you might like to show your terms on a separate WordPress page, and then display a link to it, which opens in a new window.
Your first thought might be to simply hard code an HTML anchor link inside the Agree to Terms Label field, but if you don’t type any Agreement Text, the “show terms/hide terms” link will still appear.
Copy and paste the following (mind the opening PHP tag) into your child theme’s functions.php or custom plugin. Then, simply change the $page_id to the ID of your terms page.