New seller is net redirecting to dashboard
-
Hi Team,
Using Dokan multi-vendor plugin. Some issues which I am facing, i.e. If a new Vendor register then instead of redirecting to Vendor Dashboard, it is redirected to the home page.I used this hook in my functions.php but in this case my URL becomes: ‘baseurl/sellerhub/sellerhub’
add_filter( 'woocommerce_login_redirect', 'ckc_login_redirect', 10, 2 ); function ckc_login_redirect( $redirect_url, $user ) { if( $user->roles[0] == 'seller') { return dokan_get_navigation_url('/sellerhub'); } return $redirect_url; }
Let me know how to resolve it?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘New seller is net redirecting to dashboard’ is closed to new replies.