Created
September 29, 2023 22:59
-
-
Save TanvirHasan19/07647eefb5538b5a6c282644a5d09b71 to your computer and use it in GitHub Desktop.
Allow admin and vendor to purchase their own product
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_filter( 'woocommerce_is_purchasable', 'dokan_vendor_own_product_purchase_restriction', 10, 2 ); | |
remove_filter( 'woocommerce_product_review_comment_form_args', 'dokan_vendor_product_review_restriction' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment