Skip to content

Instantly share code, notes, and snippets.


Hafil Latheef iolathief108

View GitHub Profile
iolathief108 / gist:126563c78b4c6a86e164d36211a4e3d4
Created March 14, 2021 10:01 — forked from mikejolley/gist:1604009
WooCommerce - Add a special field to the checkout, order emails and user/order meta
View gist:126563c78b4c6a86e164d36211a4e3d4
* 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>';