Created
August 9, 2017 01:38
-
-
Save jfarsen/c330409dffd1a6f870a4182c8e085c76 to your computer and use it in GitHub Desktop.
Check WooCommerce Terms & Conditions by default on checkout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* checkmark on terms and conditions by default | |
*/ | |
function arscons_wc_terms( $terms_is_checked ) { | |
return true; | |
} | |
add_filter( 'woocommerce_terms_is_checked_default', 'arscons_wc_terms', 10 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment