BuddyBoss Home – Web › Support Forums › Solutions › Social MarketPlace › Redirect Vendor at Login
- This topic has 4 replies, 2 contibutors, and was last updated 8 years ago by Varun Dubey.
Question
April 14, 2016 at 9:47 am #68283@rummelhoffI would like to redirect vendors to their Dashboard upon login. I added the code from the WC-Vendors KnowledgeBase, but that doesn’t work, and I’m pretty certain it’s because of the way OneSocial handles the login. Could you advise on how to get vendors to land on the Dashboard at login? Thank you.
Answers
April 14, 2016 at 9:54 am #68284@rummelhoffFYI, this is the code I’m referring to: https://www.wcvendors.com/kb/redirecting-vendors-seller-dashboard-login/
April 15, 2016 at 9:09 am #68425@vapvarunHi @rummelhoff
You can add following codes inside child theme to remove One Social redirect
function onesocial_remove_login_filters(){ remove_filter( 'login_redirect', 'buddyboss_redirect_previous_page', 10, 3 ); } add_action( 'after_setup_theme', 'onesocial_remove_login_filters' );
Regards
Varun DubeyApril 15, 2016 at 9:12 am #68430@rummelhoffBut won’t that simply eliminate the redirecting of users to their most recent location at login? I want users to land at their previous page, but I want vendors to land at the Dashboard.
April 16, 2016 at 8:22 am #68587@vapvarunHi @rummelhoff,
You can use any redirect plugin to redirect role base
you can try this one
https://wordpress.org/plugins/peters-login-redirect/
Regards
Varun Dubey
- The question ‘Redirect Vendor at Login’ is closed to new replies.