Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_login_redirect', 'ckc_login_redirect', 10, 2 );
- function ckc_login_redirect( $redirect_url, $user ) {
- // Change this to the url to Updates page
- if( $user->roles[0] == 'seller' ) {
- return dokan_get_navigation_url(‘dashboard’);
- }
- return $redirect_url;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement