Created
November 7, 2017 07:11
-
-
Save acanza/77ad06e9d209033c24d83ccc2c9778fe to your computer and use it in GitHub Desktop.
Deja marcada por defecto la casilla de aceptación de los términos y condiciones de compra
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
| // Deja marcada por defecto la casilla de aceptación de los términos y condiciones de compra | |
| function check_wc_terms_and_conditions_by_default( $terms_is_checked ) { | |
| return true; | |
| } | |
| add_filter( 'woocommerce_terms_is_checked', 'check_wc_terms_and_conditions_by_default', 10 ); | |
| add_filter( 'woocommerce_terms_is_checked_default', 'check_wc_terms_and_conditions_by_default', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment