From 453dc5a645be8b4d36ddb42cce3fe6cd82de8f4a Mon Sep 17 00:00:00 2001 From: Patrick Rauland Date: Wed, 4 Dec 2013 10:56:31 -0600 Subject: [PATCH] adding woocommerce_terms_is_checked filter --- templates/checkout/review-order.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index f93770b8ab1..cc1f19d1283 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -170,10 +170,12 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly echo apply_filters('woocommerce_order_button_html', '' ); ?> - 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) { ?> + 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) { + $terms_is_checked = apply_filters( 'woocommerce_terms_is_checked', isset( $_POST['terms'] ) ); + ?>

- id="terms" /> + id="terms" />