Fixed the hook name for #9290

cc @jeffstieler
This commit is contained in:
Claudio Sanches 2015-10-13 15:13:31 -06:00
parent 9c10a6fc16
commit 5372579546
1 changed files with 2 additions and 1 deletions

View File

@ -547,4 +547,5 @@ function wc_reset_order_customer_id_on_deleted_user( $user_id ) {
$wpdb->update( $wpdb->postmeta, array( '_customer_user' => 0 ), array( '_customer_user' => $user_id ) );
}
add_action( 'deleted_user', 'wc_reset_customer_id_on_delete_user' );
add_action( 'deleted_user', 'wc_reset_order_customer_id_on_deleted_user' );