Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Call vendor_product_restriction function under a hook

MultivendorX

Open
Viewing 4 reply threads
  • Author
    Posts
    • #197165
      webmaster.mid
      Participant

      Hello,

      The ‘vendor_product_restriction’ function located at dc-woocommerce-multi-vendor/classes/class-mvx-product.php::443 is being called directly within the constructor. Can you make it available on a hook so I can disable it? For my custom plugins to work, I will need to disable this function from running and I currently cannot.

      Context: The uoser tries to access product edit page and is redirected to edit.php?post_type=product (line 460, same file). I don’t want him to be redirected.

    • #197190

      @webmaster.mid For now you can hide the not required part of the code. I have informed the dev team about this. They are looking into this. We will get back to you soon with a solution for this.

    • #197427
      webmaster.mid
      Participant

      Ok, I commented this line meanwhile. Thanks Sangita!

    • #197429

      Our team will check this and get back to you with an update.
      p.s. Our office is closed due to holidays (20th to 24th Oct). Hence, the response might get delayed.

    • #215392

      @webmaster.mid I have informed the dev team regarding this. They will look into it when they will make structural changes in our core plugin’s code. You can keep track of the same from here https://github.com/multivendorx/MultiVendorX/issues/619.

Viewing 4 reply threads

Please LOGIN to reply to this topic