This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'])){ |