Action
rpress_anonymize_customer
On this page
Fires after a customer record has been anonymized so extensions can anonymize more data.
Runs in _rpress_anonymize_customer() after the customer's extra emails were removed, the saved address deleted and the customer record updated with an anonymized name, email and creation date. A note recording the anonymization is added after the action.
Available since RestroPress 2.9.2.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The anonymized customer object. |
Example#
add_action( 'rpress_anonymize_customer', 'my_anonymize_customer_meta', 10, 1 );
function my_anonymize_customer_meta( $customer ) {
$customer->delete_meta( 'my_phone' );
}
Source#
Fired from:
includes/privacy-functions.php(line 267), in_rpress_anonymize_customer()
See also#
Was this page helpful?
