Skip to content

Instantly share code, notes, and snippets.

View mclanecreative's full-sized avatar

adam mclane mclanecreative

View GitHub Profile
add_filter('woocommerce_email_footer_text','add_ip_to_email_footer', 10, 1);
function add_ip_to_email_footer( $footer ){
return $footer . ' | User IP: ' . getRealIPAddress();
}
function getRealIPAddress(){
if (!empty($_SERVER['HTTP_CLIENT_IP'])){