Created
September 18, 2016 19:49
-
-
Save BurlesonBrad/de00be7377aa1dca37ce5e3801ba0838 to your computer and use it in GitHub Desktop.
Automatically check Terms of Service box in WooCommerce https://bradgriffin.me/woocommerce
This file contains 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
function bkg_autocheck_tos( $terms_is_checked ) { | |
return true; | |
} | |
add_filter( 'woocommerce_terms_is_checked', 'bkg_autocheck_tos', 10 ); | |
add_filter( 'woocommerce_terms_is_checked_default', 'bkg_autocheck_tos', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment