WooCommerce: Add Privacy Policy Checkbox On Checkout Form

What if you need to add a required privacy policy checkout box on your WooCommerce checkout form?

woocommerce privacy policy checkbox on checkout form

WooCommerce adds a Terms & Conditions in the checkout but there’s no setting to add the same for the privacy policy page and in some countries, this is required under national privacy laws.

Thankfully there is a quick code snippet to make this happen.

Where To Put The Code Snippet?

This code snippet should go in your active theme’s functions.php file.

Add it to the bottom of the file, before any closing ?> characters.

It’s always a good idea to take a backup of your functions.php file in case anything goes wrong – you can just copy the old code back in again.

Was this article helpful?

Keep In Touch


Wil is a dad, WordPress consultant, WordPress developer, business coach and mentor. He co-organizes the WordPress Sydney meetup group and has been on the organising committee for WordCamp Sydney since 2014. He speaks at many special events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.