// ========================================================================= // CUSTOM TERMS AND CONDITIONS CHECKBOX IN WOO // ========================================================================= function add_checkbox_to_woocommerce_checkout() { ?> <p id="wpgdprc_field" class="form-row wpgdprc-checkbox validate-required"> <span class="woocommerce-input-wrapper"> <label class="checkbox"> <input id="wpgdprc" type="checkbox" value="1" class="input-checkbox" name="wpgdprc" > <span class="gdpr-privacy">I've read and accept the <a target="_blank" href="/terms-and-conditions/">Terms and Conditions</a></span> <abbr class="wpgdprc-required required" title="This field is required">*</abbr> </label> </span> </p> <?php } add_action('woocommerce_checkout_after_terms_and_conditions', 'add_checkbox_to_woocommerce_checkout' );
Leave a Reply