diff --git a/plugins/woocommerce/changelog/fix-update-customer-after-user-edit b/plugins/woocommerce/changelog/fix-update-customer-after-user-edit new file mode 100644 index 00000000000..a03bc532599 --- /dev/null +++ b/plugins/woocommerce/changelog/fix-update-customer-after-user-edit @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Update Customers report with latest user data after editing user. diff --git a/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php b/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php index 848a5d862ca..e1ca489389a 100644 --- a/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php +++ b/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php @@ -84,7 +84,7 @@ class DataStore extends ReportsDataStore implements DataStoreInterface { * Set up all the hooks for maintaining and populating table data. */ public static function init() { - add_action( 'edit_user_profile_update', array( __CLASS__, 'update_registered_customer' ) ); + add_action( 'profile_update', array( __CLASS__, 'update_registered_customer' ) ); add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 ); }