Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.x
Multi-store. Franchise. Facilitator. AI tools.
Everything your marketplace needs - now in one platform.
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

-
DAYS
-
HOURS
-
MINUTES
-
SECONDS
20% Off Is Temporary. The Benefits Aren't.

HAPPY20

Join the MultiVendorX Facebook Community

Contact, share, and grow with thousands of MultiVendorX users around the world.

Call vendor_product_restriction function under a hook

Resolved
Viewing 5 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.

    • #252290

      We have already released the revamped versions of our plugin. In this update, we’ve completely restructured the code architecture, refined existing features, and introduced several new advanced functionalities.

      We kindly request you to update the plugin to the latest version on your end and check accordingly.

      We will be closing this thread for now. If you have any questions regarding the new version or encounter any issues, please feel free to create a new support thread, and we’ll be happy to assist you.

Viewing 5 reply threads
  • The topic ‘Call vendor_product_restriction function under a hook’ is closed to new replies.
Shopping Cart
Launch Your Marketplace
in Days, Not Month
Get expert guidance to build, scale, and grow your MultiVendorX marketplace
Book Free Strategy Call
Trusted by 10000+ marketplace Owners
Scroll to Top