Join our new community forum for support & discussion

Join Now

Home Support Themes TaskHive How to get ID of current Vendor on Profile Page

How to get ID of current Vendor on Profile Page

  • Author
    Posts
  • Kreeger

    Hi,

    When visiting a Vendor Profile Page, I’m trying to get the ID of this vendor, to use in some code.
    Not the current logged in user, the ID of the vendor the user is currently consulting.

    I tried this :
    hivepress()->request->get_context('vendor');

    But it doesn’t return anything… Is there another way to get the vendor ID ? Thank you.

    Kreeger

    nvm, found the issue, wasn’t using it inside an hivepress hook so it didn’t work. It moved it somewhere else and now it’s working 🙂

    ihor developer

    Thanks for posting the solution!

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.