Skip to content

Instantly share code, notes, and snippets.

View szaniewski's full-sized avatar
🌴
On vacation

Michał Szaniewski szaniewski

🌴
On vacation
View GitHub Profile
@szaniewski
szaniewski / gist:334af51ef3e66065e2676a34ff7842fb
Created June 15, 2021 13:41 — forked from thegdshop/gist:3171026
WooCommerce - Add checkbox field to the checkout
<?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>';