Vendor redirect after login? How to change it?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Vendor redirect after login? How to change it?

Viewing 1 reply thread
  • Author
    Posts
    • #31765
      Tavan
      Guest

      I have a custom page that checks if a vendor is logged in. If they aren’t logged in I provide them a link to login, hoping to take advantage of the redirect_to option of wordpress which redirects them AFTER they log in via the link:

      https://site.com/wp-login.php?redirect_to=site.com%2Fconfirm%2F%3Fuser_id%3D14%26status%3Dconfirmed%26appointment_id%3D2419

      It works for normal accounts, but not vendors. Vendors are always redirected to site.com/wcfm. Is there a way I can make it so that my redirect works?

      Thank you

    • #31796
      WCFM Forum
      Keymaster

      Hi,

      You are right, WCFM control login redirect for vendor users.

      But if you don’t want that then just disable by adding this line of code –

      add_filter( 'wcfm_is_allow_login_redirect', '__return_false' );

      Thank You

Viewing 1 reply thread
  • The topic ‘Vendor redirect after login? How to change it?’ is closed to new replies.