Created
October 6, 2017 13:29
-
-
Save lukecav/e46fb54d78a3fa8af9966fece27b85ab to your computer and use it in GitHub Desktop.
Stop customer IP from being saved in orders in WooCommerce
This file contains hidden or 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( 'update_post_metadata', 'wc_customer_ip_delete', 10, 3 ); | |
function wc_customer_ip_delete( $null, $id, $key ) { | |
if ( '_customer_ip_address' === $key ) | |
return FALSE; | |
return $null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/glueckpress/8335883