Skip to content

Instantly share code, notes, and snippets.

View sitoexpress's full-sized avatar

Sito.Express sitoexpress

View GitHub Profile
@Kyzoe
Kyzoe / WooCommerce: Is this a gift + Validation + Email + Order Details
Created May 1, 2019 13:42
WooCommerce: Is this a gift + Validation + Email + Order Details
// add gift message on checkout after the "Order Notes"
add_action( 'woocommerce_after_order_notes', 'bdev_is_this_a_gift' );
function bdev_is_this_a_gift() {
$domain = 'woocommerce';
?>
<style>p#gift_field{display:none;}</style>
<div id="message">
<h3><i class="fa fa-gift"></i><?php _e( ' Is this a gift?', 'woocommerce' ); ?></h3>
<?php