do_action( 'edd_before_privacy_policy' )

Privacy Policy output has dual functionality, unlike Agree to Terms output:


Description Description

  1. A checkbox (and associated label) can show on checkout if the ‘Agree to Privacy Policy’ setting is checked. This is because a Privacy Policy can be agreed upon without displaying the policy itself. Keep in mind the label field supports anchor tags, so the policy can be linked to.

  2. The Privacy Policy text, which is post_content pulled from the WP core Privacy Policy page when you have the ‘Show the Privacy Policy on checkout’ setting checked, can be displayed on checkout regardless of whether or not the customer has to explicitly agreed to the policy by checking the checkbox from point #1 above.

Because these two display options work independently, having either setting checked triggers output.


Source Source

File: includes/checkout/template.php


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.