Skip to content

Instantly share code, notes, and snippets.

View aboglioli's full-sized avatar
💡

Alan Boglioli aboglioli

💡
View GitHub Profile
@aboglioli
aboglioli / gist:f8f2cb03bff8d75d6ad94cb10708fec1
Last active September 3, 2016 05:22 — forked from mikejolley/gist:1604009
WooCommerce - Add a special field to the checkout, order emails and user/order meta
<?php
/**
* Add the field to the checkout
**/
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field');
function my_custom_checkout_field( $checkout ) {
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>';