Charge Points
do_action("moolamojo_transaction", false, 50, "downloaded widget", $user_id, "widgets_table", $widget_id);
Explanation of the parameters:
- "moolamojo_transaction" - the name of the action. Don't change this.
- false - reward or charge. When true - reward, when false - charge.
- 50 - the amout of virtual credits to charge or reward
- "downloaded widget" - short textual description of the action. Optional
- $user_id - the ID of the user performing the action. Optional - when empty, current user will be used.
- "widgets_table" - DB table name to create relation. Optional.
- $widget_id - DB table record ID to create relation. Optional.