Thank you!
So it’s just this:
$current_balance = woo_wallet()->wallet->get_wallet_balance( $user_id, 'edit' );
delete_user_wallet_transactions( $user_id, true );
if ( $current_balance ) woo_wallet()->wallet->credit ($user_id, $current_balance, __( 'Balance after deleting transaction logs', 'woo-wallet' ) );
-
This reply was modified 6 months, 2 weeks ago by anonwins.
-
This reply was modified 6 months, 2 weeks ago by anonwins.