Skip to content

Instantly share code, notes, and snippets.

@ipokkel
Created July 6, 2020 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ipokkel/7ea637c721bd051ece6679e012c78fc8 to your computer and use it in GitHub Desktop.
Save ipokkel/7ea637c721bd051ece6679e012c78fc8 to your computer and use it in GitHub Desktop.
Create a a text link to a media file (PDF) for a Terms & Conditions checkbox on checkout. #pmpro #pdf
@laurenhagan0306
Copy link

This recipe is included in the blog post on "How to Add a Required Checkbox for Service Agreement or Terms of Service" at Paid Memberships Pro here: https://www.paidmembershipspro.com/show-link-terms-of-service-membership-checkout/

@ipokkel
Copy link
Author

ipokkel commented Apr 20, 2022

It is possible to set a custom error message when the checkbox was not checked by hooking into pmpro_registration_checks.
https://gist.github.com/ipokkel/de73eef8453a8c22b4eadbb7322acee8

@ipokkel
Copy link
Author

ipokkel commented Apr 25, 2023

To achieve the same without Register Helper using code for the User Fields class introduced in PMPro core use https://gist.github.com/ipokkel/8dac8389a03f9d663ca3b4b3c6bdbc32

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