Update Customers report with latest user data after editing user (#37237)
This commit is contained in:
parent
adffb280f8
commit
fb3a920a7e
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Update Customers report with latest user data after editing user.
|
|
@ -84,7 +84,7 @@ class DataStore extends ReportsDataStore implements DataStoreInterface {
|
||||||
* Set up all the hooks for maintaining and populating table data.
|
* Set up all the hooks for maintaining and populating table data.
|
||||||
*/
|
*/
|
||||||
public static function init() {
|
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 );
|
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue