Skip to content

Instantly share code, notes, and snippets.

View eduardo-marcolino's full-sized avatar

Eduardo Marcolino eduardo-marcolino

View GitHub Profile
<?php
/**
* Add checkbox field to the checkout
**/
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field');
function my_custom_checkout_field( $checkout ) {
echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>';