Changing position of the Opt-In checkbox
-
I would like to display the Opt-In Checkbox in the ‘woocommerce_review_order_after_submit’ action hook and would like to know how could I do that… I’ve only managed it this way by creating manually the checkbox via HTML:
add_action('woocommerce_review_order_after_submit', function() { ?> <p class="form-row" id="ss_wc_mailchimp_opt_in_field"> <input type="checkbox" class="input-checkbox" name="ss_wc_mailchimp_opt_in" id="ss_wc_mailchimp_opt_in" value="1" checked="checked"> <label for="ss_wc_mailchimp_opt_in" class="checkbox"><?php echo __('Newsletter Abonieren'); ?></label> </p> <?php });
Is there a better way?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changing position of the Opt-In checkbox’ is closed to new replies.