How to Remove Dokan Vendor Registration Button From Your Customer Account

Dokan has this amazing feature where a customer can apply to be a vendor from his/her account. There is a button in the customer account ” Become a Vendor“, which they can use to become a vendor.

However, some of the marketplace owners don't want that button in the customer's account. There are a few reasons behind it-

  • They don't want to distract the customer
  • Limit the number of vendors in the marketplace
  • Make sure that anybody can't apply to be a vendor
  • Stop the migration of customers to vendor.

That is why today we are going to show you how to remove and hide the “Become a Vendor” button. In short, how to perform Dokan disable vendor registration.

Let's get into the details-

Dokan Disable Vendor Registration : 3 Steps to Remove the Vendor Button

Actually, hiding the “Become a Vendor” button is very easy than you think. You may be wondering we are going to remove the code altogether and remove the button. Removing coding is always a bad idea, as they are interconnected.

Become a vendor

You remove a function here, and it can affect other functions as well. You need to follow the below steps to remove or hide the vendor button.

Step 1: Create a Child Theme if You Haven't

First of all, you need to create a child theme. Because you will need a child theme to make adjustments to the file, as this enhancement is related to the theme.

Create a folder for child theme

Creating a child theme is very easy. You can follow this article to create a child theme. You will also find plugins in the WordPress repository to create a child theme.

Step 2: Copy the Code in the Child Theme's Function.php File

Next, go to finder or folders and navigate to WP-Content–> Themes–> Your Child Theme Name–>Open Functions.php. Copy the below code.

remove_action( 'woocommerce_after_my_account', array( Dokan_Pro::init(), 'dokan_account_migration_button' ) );

Step 3: Save the Code and Refresh Your Website

After you copy and save the code, log in to a test customer's account and refresh the website. You will see that the “Become a Vendor” button has disappeared.

hide vendor

This is how you can easily remove or hide the vendor button in Dokan.

Or you can check out this video,

Read: How to Find Vendors for Your Marketplace

Hide the Vendor Button & Improve Customer Experience!

As WordPress and its plugins are open sources, you can easily add customizations to make the necessary changes. We have already shown you how to hide shipping methods and redirect users to a custom URL.

Hopefully, now you will be able to hide the vendor button from your customer's account. If you have any queries, do let us know in the comment section.

Subscribe to weDevs blog

We send weekly newsletter, no spam for sure

Related Post

Rabbir Shad
Written by

Rabbir Shad

Shad is a Content Writer with expertise in eCommerce, SEO, WordPress, and Technology. He has a passion for Football. Besides, he likes to spend time reading a quality book or watching any classic film.

Have something to say? Cancel Reply

Your email address will not be published.

Table of Contents