Hello @flo1982 ,
You need to use this code in your theme’s functions.php file to remove the “Go to Vendor Dashboard” button –
remove_action( 'woocommerce_account_dashboard', 'dokan_set_go_to_vendor_dashboard_btn' );
To use it on the menu only for logged in user you may try to use third-party plugins like this – https://wordpress.org/plugins/if-menu/
Thank you 🙂
Hello @rur165
Is there a way to rename the button instead of removing it?
I didn’t see any translation value for this in the Dokan translation file.
Cheers
Hello @niikk ,
Yes, we have a filter to modify the texts –
add_filter( 'dokan_set_go_to_vendor_dashboard_btn_text', function($button_text) {
return $button_text = __( 'HERE IS YOUR TEXT', 'dokan-lite' );
}, 1000);
Let me know if this is what you wanted.
Thank you 🙂
@rur165
Thanks! This is exacly what i’m looking for 🙂
Cheers
@rur165
Hi, I am using Dokan Business Plan
I have tried the code above:
remove_action( ‘woocommerce_account_dashboard’, ‘dokan_set_go_to_vendor_dashboard_btn’ );
it’s delete both options (Become a vendor & Become a wholesale customer)
I there a customized code to hide only become a vendor option?
I also suggest to let the user to be able to upload an attachment to approve that he is a business owner so I can let him become a wholesale customer.
-
This reply was modified 5 years, 5 months ago by
housamokeh.
-
This reply was modified 5 years, 5 months ago by
housamokeh.
Hello @housamokeh ,
The code we were discussing here was for the “Go to vendor dashboard” button. This code will not remove the “Become a vendor” or “Become wholesale customer” button.
Both of these are available only in Dokan Pro so please contact us through the support channel. We are unable to discuss any pro features in this forum.
A quick note on this: you have to use the CSS/template override method if you want to hide only one button.
Thank you 🙂