Best Multi Vendor Marketplace Plugin for WordPress › Forums › WC Marketplace › Landing Page
- This topic has 7 replies, 2 voices, and was last updated 7 years, 7 months ago by
WCFM Forum.
- AuthorPosts
- November 26, 2018 at 7:46 am #38049
gabrielnig5
ParticipantHi,
When a user logs in into their account on my site, i want them to land on my home page and not the vendor dashboard. Please how do i achieve this? - November 26, 2018 at 9:32 am #38081
WCFM Forum
MemberHi,
Kindly add this code –
add_filter( 'wcfm_is_allow_login_redirect', '__return_false');This will disable WCFM login redirect for vendors, and it will start working as per your default login redirect setup.
Thank You
- November 26, 2018 at 4:13 pm #38153
gabrielnig5
ParticipantHi,
Thank You for your reply.
I added the code to my theme’s function.php but it did not change to the desired effect.
When user’s who are vendors login, they still land on the wcfm dashboard. - November 27, 2018 at 6:29 am #38291
WCFM Forum
MemberUmm … I think that’s because of some other reason.
You are using WC Marketplace plugin and it also has a redirect code which make vendor’s redirect to their front-end dashboard after login.
Now, WCFM ensure that front-end page should WCFM dashboard.Well, you may once ask WC Marketplace forum how you can disable their vendor login redirect.
Or, alternate solution is to write a new redirect rule for vendor’s login.
Please tell me what you what to do?
Thank You
- November 27, 2018 at 7:30 am #38301
gabrielnig5
ParticipantHi,
I am not a coding pro, So please tell me where exactly i am to put the code to get the result.
Maybe i did not get it right the first time. - November 27, 2018 at 7:32 am #38302
WCFM Forum
MemberHi,
You may add that code to your child theme’s functions.php
Or, may use this plugin for the purpose – https://wordpress.org/plugins/code-snippets/
Thank You
- November 28, 2018 at 10:08 am #38494
gabrielnig5
ParticipantThanks A lot, It works now.
- November 28, 2018 at 11:39 am #38506
WCFM Forum
MemberGreat and thanks for updating me on this.
Have a great day 🙂
- AuthorPosts
- The topic ‘Landing Page’ is closed to new replies.