• Resolved yltan

    (@yltan)


    Hi

    I would like to know how we can hide the customer IP in the order page

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @yltan

    You can use the following snippet to hide the customer IP in the order page:

    add_action( 'woocommerce_checkout_update_order_meta', 'mp1401091554', 1 );
    function mp1401091554( $order_id ) {
    	update_post_meta(
    		$order_id,
    		'_customer_ip_address',
    		0
    	);

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.

    If you have further questions, please feel free to open a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide customer IP in order page’ is closed to new replies.