From 8782be0b026110709f54f19cc3576184c61e6ee4 Mon Sep 17 00:00:00 2001 From: Boro Sitnikovski Date: Thu, 3 May 2018 11:06:11 +0200 Subject: [PATCH] Use payment tokens instead of tokens --- includes/class-wc-privacy-erasers.php | 10 +++------- includes/class-wc-privacy-exporters.php | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/includes/class-wc-privacy-erasers.php b/includes/class-wc-privacy-erasers.php index b535152231a..6d4a17751d8 100644 --- a/includes/class-wc-privacy-erasers.php +++ b/includes/class-wc-privacy-erasers.php @@ -344,13 +344,9 @@ class WC_Privacy_Erasers { foreach ( $tokens as $token ) { WC_Payment_Tokens::delete( $token->get_id() ); - $erased = apply_filters( 'woocommerce_privacy_erase_customer_token', true, $token ); - - if ( $erased ) { - /* Translators: %s Prop name. */ - $response['messages'][] = sprintf( __( 'Removed token "%d"', 'woocommerce' ), $token->get_id() ); - $response['items_removed'] = true; - } + /* Translators: %s Prop name. */ + $response['messages'][] = sprintf( __( 'Removed payment token "%d"', 'woocommerce' ), $token->get_id() ); + $response['items_removed'] = true; } /** diff --git a/includes/class-wc-privacy-exporters.php b/includes/class-wc-privacy-exporters.php index 7da7788a96e..f80c080b297 100644 --- a/includes/class-wc-privacy-exporters.php +++ b/includes/class-wc-privacy-exporters.php @@ -378,7 +378,7 @@ class WC_Privacy_Exporters { foreach ( $tokens as $token ) { $data_to_export[] = array( 'group_id' => 'woocommerce_tokens', - 'group_label' => __( 'Tokens', 'woocommerce' ), + 'group_label' => __( 'Payment Tokens', 'woocommerce' ), 'item_id' => 'token-' . $token->get_id(), 'data' => json_encode( $token->get_data() ), );