How to deactivate IP saving for orders?
-
Hello,
I would like to deactivate this feature of logging the IP of customers in the orders. I found a php snippet on the net but this doesn’t work. Anyone knows a solution? Is there an option that I did not find bc I wonder why one needs to hardcode it?
/** Stop saving customer IP */
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;
}
Ansicht von 1 Antwort (von insgesamt 1)
Ansicht von 1 Antwort (von insgesamt 1)
- Das Thema „How to deactivate IP saving for orders?“ ist für neue Antworten geschlossen.