Title: Get woo wallet amount using code snippets
Last modified: September 21, 2018

---

# Get woo wallet amount using code snippets

 *  Resolved [sonuverma](https://wordpress.org/support/users/sonuverma/)
 * (@sonuverma)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/)
 * When new user register i want to add some amount according to the membership 
   plans.
    -  This topic was modified 7 years, 7 months ago by [sonuverma](https://wordpress.org/support/users/sonuverma/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Subrata Mal](https://wordpress.org/support/users/subratamal/)
 * (@subratamal)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/#post-10710192)
 * [@sonuverma](https://wordpress.org/support/users/sonuverma/),
 * You can use `woo_wallet()->wallet->credit($user_id, $amount, $details);` function
   to credit user wallet with perticular amount.
 * Cheers!!!
 *  Thread Starter [sonuverma](https://wordpress.org/support/users/sonuverma/)
 * (@sonuverma)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/#post-10710387)
 * and how can we get current user wallet balance
    what is $details
    -  This reply was modified 7 years, 7 months ago by [sonuverma](https://wordpress.org/support/users/sonuverma/).
 *  Thread Starter [sonuverma](https://wordpress.org/support/users/sonuverma/)
 * (@sonuverma)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/#post-10710413)
 * and for using this function we need to add any global variables
 *  Plugin Author [Subrata Mal](https://wordpress.org/support/users/subratamal/)
 * (@subratamal)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/#post-10710517)
 * [@sonuverma](https://wordpress.org/support/users/sonuverma/),
 * >  and how can we get current user wallet balance
 * to get current user wallet balance details you can call `woo_wallet()->wallet-
   >get_wallet_balance($user_id);` function.
 * > what is $details
 * This is transaction details note you can pass this value empty.
 * > and for using this function we need to add any global variables
 * No needs to add any global variable.
 * Thank you!!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Get woo wallet amount using code snippets’ is closed to new replies.

 * ![](https://ps.w.org/woo-wallet/assets/icon-256x256.png?rev=3360666)
 * [Wallet for WooCommerce](https://wordpress.org/plugins/woo-wallet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-wallet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-wallet/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-wallet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-wallet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-wallet/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Subrata Mal](https://wordpress.org/support/users/subratamal/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/get-woo-wallet-amount-using-code/#post-10710517)
 * Status: resolved