Title: Checkout Breaks when using user switching
Last modified: October 3, 2023

---

# Checkout Breaks when using user switching

 *  Resolved [davomc](https://wordpress.org/support/users/davomc/)
 * (@davomc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/checkout-breaks-when-using-user-switching/)
 * See loom video of the issue, and also showing when user switching is deactivated
   the checkout works correctly both in native WP checkout and FunnelKit Checkout.
 * I never used to get this issue so something has changed recently.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcheckout-breaks-when-using-user-switching%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 8 months ago](https://wordpress.org/support/topic/checkout-breaks-when-using-user-switching/#post-17114087)
 * Thanks for the report.
 * Even with Funnelkit deactivated, what you’re seeing is not the native WooCommerce
   checkout screen, it’s a custom one either from your theme or from a plugin on
   your site.
 * Judging by the output of the ajax response that I can see in the video, something
   on your site is calling the `wp_meta` action when it shouldn’t, which causes 
   User Switching to output its “Switch back” link which is normally shown in the“
   Meta” sidebar widget, if it’s in use. This is what’s breaking the ajax response.
 * I recommend that you try switching to one of the default WordPress themes and
   test this again, and if that doesn’t work try deactivating your other plugins
   one by one until you find out which one is triggering that ajax request on the
   checkout screen.
 * Best of luck!
 *  Thread Starter [davomc](https://wordpress.org/support/users/davomc/)
 * (@davomc)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/checkout-breaks-when-using-user-switching/#post-17114839)
 * This is what drives me crazy about WordPress, every plugin blames the theme or
   another plugin and noone ever seems to want to fix an issue.
 * I have found a workaround for this so I’m not fussed if it gets fixed or not.
   But as I mentioned, this issue also occurs on the standard checkout (have tested),
   it has nothing to do with my theme, and it previoously worked perfectly.
 * I have also tested turning off all the plugins, and the plugin which causes the
   issue is the “User Switching” plugin.
 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 8 months ago](https://wordpress.org/support/topic/checkout-breaks-when-using-user-switching/#post-17115194)
 * Working with WordPress is my day job, so believe me that I know how crazy it 
   drives you.
 * I cannot fix something that’s not broken. As I said, the root cause is something
   on your site is calling the `wp_meta` action when it shouldn’t. This causes User
   Switching to output its Switch Back link the in ajax response on the checkout
   screen.
 * If you do decide to investigate further, you should find out what is triggering
   that ajax request (either your theme, a plugin, or a mu-plugin) and go from there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Checkout Breaks when using user switching’ is closed to new replies.

 * ![](https://ps.w.org/user-switching/assets/icon.svg?rev=3193956)
 * [User Switching](https://wordpress.org/plugins/user-switching/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-switching/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-switching/)
 * [Active Topics](https://wordpress.org/support/plugin/user-switching/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-switching/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-switching/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/checkout-breaks-when-using-user-switching/#post-17115194)
 * Status: resolved