Skip to content

Instantly share code, notes, and snippets.

@rashedripon
Created December 29, 2019 22:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashedripon/c25994367dcf80bdcbbfc92e9e2326b5 to your computer and use it in GitHub Desktop.
Save rashedripon/c25994367dcf80bdcbbfc92e9e2326b5 to your computer and use it in GitHub Desktop.
Remove "Become a vendor" button from customers account
<?php
// Remove "Become a vendor" button from customers account
if(class_exists('Dokan_Pro')) {
remove_action( 'woocommerce_after_my_account', array( Dokan_Pro::init(), 'dokan_account_migration_button' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment