Use Switch Off hook to log a user out and redirect them to a specific page?
-
We have a manufacturer client website that has a dealer network. We set up Dealer roles in WP for them to access a “Dashboard” with links to some special pages. The dealers also can be with their customers (end users of the product) to order from the product and a an optional maintenance contract from this site via a Woocommerce one-page checkout. We’re running into an issue where the dealer is logged in, places an order with the dealer’s customer’s information and all of these orders and subscriptions are being associated with the Dealer’s account and not a separate customer account.
I saw this plugin and
switch_off_user
hook in your GitHub repository. Would like to find out if that can be called from a link on the dealer’s “dashboard” where the dealer would click it, it would log them out and redirect them to the one-page checkout where their customer enters their info to buy. This would (I think) then allow the order/subscription be associated with the dealer’s customer vs. showing up under the dealer’s account.If you provide any dev services related to this, I’d be happy to discuss outside of this support thread or if you want me to discuss this on GitHub instead, please advise.
Thank you! ~John
- The topic ‘Use Switch Off hook to log a user out and redirect them to a specific page?’ is closed to new replies.