Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Redirect to Product page instead of Dashboard after Login.
- This topic has 3 replies, 4 voices, and was last updated 3 years, 9 months ago by server.monks123.
Viewing 3 reply threads
- AuthorPosts
- December 19, 2019 at 4:00 pm #98026ing.rappariniParticipant
I need WCFM login redirect NOT TO vendor dashboard but toproducts page.
(In my case is https://www.sdrang.com/store-manager/products/ )Can you send me a code?
Thanks - December 22, 2019 at 11:09 am #98463Sarmistha ChakrabortyKeymaster
Hello,
add_filter( 'wcfm_login_redirect','custom_wcfm_login_redirect', 10, 2 ); function custom_wcfm_login_redirect($redirect_to, $user){ return $redirect_to.'/products'; }
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thanks.
- May 27, 2020 at 1:51 pm #135680Michael TibbleParticipant
Thanks Sarmistha. The code worked perfectly!!
- July 7, 2020 at 2:44 pm #146657server.monks123Participant
Hey Sarmistha can you help me with a code snippet to redirect only vendors to wcfm vendor dashboard on login
- AuthorPosts
Viewing 3 reply threads
- You must be logged in to reply to this topic.