Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @ravi5155

    Yes you can use woo_wallet()->wallet->get_wallet_balance($user_id); to fetch a perticualr users current wallet balance.

    Regarding REST API authentication please check if default WordPress route is working or not.

    Thread Starter ravi5155

    (@ravi5155)

    Thank you for your immediate response.

    I know i can can use woo_wallet()->wallet->get_wallet_balance($user_id); to fetch a perticular users current wallet balance.

    But the problem is i am getting woo_wallet as undefined.
    I have created a new folder in plugins/testplug/code.php
    in this I am trying to access the same.
    Please let me know which file to include in my code.php file so that i can access woo wallet classes and methods.

    Plugin Author Subrata Mal

    (@subratamal)

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

The topic ‘Plugin function information’ is closed to new replies.