parent
9c10a6fc16
commit
5372579546
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue