- This topic has 5 replies, 2 voices, and was last updated 2 months, 2 weeks ago by
Sangita Support Squad.
-
AuthorPosts
-
-
October 14, 2023 at 3:14 AM #197165
webmaster.mid
ParticipantHello,
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.
-
October 14, 2023 at 6:23 PM #197190
Sangita Support Squad
Keymaster@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.
-
October 23, 2023 at 7:54 PM #197427
webmaster.mid
ParticipantOk, I commented this line meanwhile. Thanks Sangita!
-
October 23, 2023 at 8:07 PM #197429
Sangita Support Squad
KeymasterOur 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. -
December 23, 2023 at 1:57 PM #215392
Sangita Support Squad
Keymaster@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.
-
April 27, 2026 at 11:35 AM #252290
Sangita Support Squad
KeymasterWe 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.
-
-
AuthorPosts
- The topic ‘Call vendor_product_restriction function under a hook’ is closed to new replies.




