=== User Switching for WooCommerce ===
Contributors: krokedil
Requires at least: 5.0
Tested up to: 6.3.1
Requires PHP: 7.3
WC requires at least: 6.0.0
WC tested up to: 8.2.0
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Enables users with a certain role to switch between other users on frontend. 

Enables, amongst other, to let certain users shop on behalf of other users in WooCommerce. 

== Description ==
When activated the plugin creates a new role. Then users who belong to this role can switch between other users when logged in on front-end. 

Great way for letting users control other users account. For example b2b based commerce sites. 

== Installation ==
Simple installation: 
 - activate plugin, 
 - Define your own labels 
 - Set which roles the user can choose amongst
 - A Switch to other user icon will now be visible in the top left corner in front-end. Click the icon to switch another user.

== Changelog ==
= 2023-12-07    - version 2.0.4 =
* Fix           - Fixed an issue where if wp_capabilities is used, no user would be found.
* Fix           - Fixed an issue where you could search and find, but not switch to certain non-standard, custom roles.
* Fix           - Fixed PHP 8 warning.

= 2023-08-30    - version 2.0.3 =
* Tweak         - Removes deprecated persistent cart function.
* Fix           - PHP 8.0 fix. Magic method __wakeup needs to be declared as public.
* Fix           - PHP deprecated notice fix. Use 0 instead of null in setcookie expires_or_options param.

= 2021-09-23    - version 2.0.2 =
* Fix           - Fix problem where search on user meta data not always working.

= 2021-06-15    - version 2.0.1 =
* Fix           - Fix body class bug for non logged in users.

= 2021-05-31    - version 2.0.0 =
* Feature       - Adds "Switchable roles" setting to limit what roles the logged in users can switch to.
* Feature       - Adds "Display option" setting to format the user data that should be displayed (and searched for) in front-end.
* Tweak         - Supports view in mobile devices.
* Tweak         - Change JS library for user switcher logic in front-end from Chosen to SelectWoo.
* Fix           - Is multisite fix.

= 2019-10-23    - version 1.0.1 =
* Tweak         - Tweaking plugin name.

= 2019-10-23    - version 1.0.0 =
* Initial release.
