Woocommerce Remove Customer IP Address When Order Is Made - Simple Project
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

Customer IP Address is logged when order is made through Woocommerce. I want to remove this please tell me how to get rid off it for future orders and previous orders.

Could you provide more information? Screenshots?
optimist 14 days ago
How do is send that? @optimist
THEBOI 13 days ago
@THEBOI you can post your screenshots on a service like https://snag.gy/ or imgur and include a link in your bounty description.
bevan 12 days ago
https://snag.gy/CW9n0q.jpg @beven
THEBOI 12 days ago
ip is highlighted
THEBOI 12 days ago
awarded to hhaid

Crowdsource coding tasks.

2 Solutions

Did you try this?


* Snippet for deleting the customer IP address from WooCommerce orders.
* Important for Trusted Shops® certificates in Germany.
add_action( 'woocommerce_checkout_update_order_meta', 'mp1401091554', 1 );
function mp1401091554( $order_id ) {

I could implement this for you if you send me the login details of woocommerce and/or ftp server;
Created this anti-spam email address for you;

I saw the code in a forum but dont know where to put it. Could you direct me to where to place it?
THEBOI 13 days ago
Will write a guide for you & update my original answer; give me a minute.
5osxcwbf 13 days ago
https://snag.gy/CW9n0q.jpg thats what im trying to get rid off ip is higlighted
THEBOI 12 days ago
THEBOI 12 days ago
So i'm having some trouble with getting woocommerce running (mismatching php/mysql versions etc) , but could you try for me to look within your wordpress directory for the "wp-includes" directory, within there you find "functions.php" just add the code of my post at the bottom of the file. Then see if things change by refreshing. I will continue to try to get woocommerce working on my testserver
5osxcwbf 12 days ago
Winning solution

1.Let's find out the IP address we want to delete
IP address print or /IP address print
2.Then you will get IP address with it's ID, for example, "0" "1" etc.
3.After that type,
ip address remove hit enter and type the ID[not ip] to remove
4.Hit enter and that's it.After that check the config -->ip address print
*it's so simple :D

This is a more simplistic way to remove any customers IP address hope this is not so complicating for you
XOXOX all hopes Hhaid.

Also, this is anther suggestion if you ever want a code for it this is the most recommended code I would use. <?php addaction( 'woocommercecheckoutupdateordermeta', 'mp1401091554', 1 ); function mp1401091554( $orderid ) { updatepostmeta( $orderid, 'customeripaddress', ); }
hhaid 9 days ago
View Timeline