Title: Hooks
Last modified: October 17, 2020

---

# Hooks

 *  Resolved [growmedia](https://wordpress.org/support/users/growmedia/)
 * (@growmedia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/hooks-33/)
 * Hi!
    Is there a way to customize the actions? I am programming a form that when
   submitted, the user’s credits are subtracted. I cannot find the corresponding
   function/hook to program the subtraction of credits manually. Thanks in advance!

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

 *  Plugin Author [Long Watch Studio – Code Faeries](https://wordpress.org/support/users/lwsdevelopers/)
 * (@lwsdevelopers)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/hooks-33/#post-13547207)
 * Hello,
 * For the moment, there is no hooks available to do what you are asking for.
 * For technical information (like functions), please contact the support through
   mail (up right inside your plugin administration).
 *  Plugin Author [Long Watch Studio – Code Faeries](https://wordpress.org/support/users/lwsdevelopers/)
 * (@lwsdevelopers)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/hooks-33/#post-13548286)
 * Here’s how to do it :
 *     ```
       $w = \LWS\WOOVIRTUALWALLET\Core\Wallet::instanciate(\get_current_user_id());
       $w->subAmount($amountToSubtract, 'Wallet History Reason');
       ```
   

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

The topic ‘Hooks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woovirtualwallet_f3f3f3.svg)
 * [WooVirtualWallet - A virtual wallet for WooCommerce](https://wordpress.org/plugins/woovirtualwallet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woovirtualwallet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woovirtualwallet/)
 * [Active Topics](https://wordpress.org/support/plugin/woovirtualwallet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woovirtualwallet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woovirtualwallet/reviews/)

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 2 replies
 * 2 participants
 * Last reply from: [Long Watch Studio – Code Faeries](https://wordpress.org/support/users/lwsdevelopers/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/hooks-33/#post-13548286)
 * Status: resolved