Skip to content

Instantly share code, notes, and snippets.

View mclanecreative's full-sized avatar

adam mclane mclanecreative

View GitHub Profile
@nciske
nciske / add_ip_to_wc_email.php
Last active July 4, 2017 11:23
Add IP to WooCommerce email footer
<?php
add_filter('woocommerce_email_footer_text','add_ip_to_email_footer', 10, 1);
function add_ip_to_email_footer( $footer ){
return $footer . ' IP: ' . getRealIPAddress();
}
function getRealIPAddress(){