Home Forums WC Vendors Pro Support Vendor Register redirect Reply To: Vendor Register redirect

Aaron Roessler

Ok that code works! but I want them to be directed to product tab. here: https://reusesb.com/dashboard/product

I modified the code but still only goes to main dashboard tab.

add_filter('woocommerce_login_redirect', 'login_redirect', 10, 2);
function login_redirect( $redirect_to, $user ) {
    if (class_exists('WCV_Vendors') && class_exists('WCVendors_Pro') && WCV_Vendors::is_vendor( $user->id ) ) {
        $redirect_to =  'https://reusesb.com/dashboard/product';
    return $redirect_to;
This website uses cookies to ensure you get the best experience on our website.