Created
June 21, 2018 14:59
-
-
Save dennisnissle/9e9dbe056c044bf8b5be44a5c994a344 to your computer and use it in GitHub Desktop.
Move legal checkboxes right before order submit button (Germanized > 2.X)
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
<?php | |
add_action( 'init', 'my_child_move_legal_checkboxes', 50 ); | |
function my_child_move_legal_checkboxes() { | |
// Remove | |
remove_action( 'woocommerce_review_order_after_payment', 'woocommerce_gzd_template_render_checkout_checkboxes', 10 ); | |
// Readd before submit button | |
add_action( 'woocommerce_gzd_review_order_before_submit', 'woocommerce_gzd_template_render_checkout_checkboxes', 10 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI Webrum,
why did you write "wpmc-woocommerce_order_review" ?