=== Hibiscus Login As Customer for WooCommerce ===
Contributors: 1.0hibiscustechnolab
Donate link: https://buymeacoffee.com/hibiscustechnolab
Tags: woocommerce, customer login, login as customer, admin tools, support
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html


Securely log in as any WooCommerce customer and return to admin with one click.

== Description ==
Hibiscus Login As Customer for WooCommerce allows WordPress administrators to securely log in as any WooCommerce customer without needing their password. Ideal for store owners, support teams, and developers, it helps troubleshoot issues, review orders, test checkout flows, and provide personalized support.
With a single click, you can impersonate a customer and instantly return to your admin account.

❤️ **Support Hibiscus Technolab!** Consider buying us a coffee to keep this plugin free and maintained:  
[Buy Me a Coffee](https://buymeacoffee.com/hibiscustechnolab)
Hibiscus Login As Customer for WooCommerce – Full Documentation and Demo](https://hibiscustechnolab.com/hibiscus-login-as-customer-for-woocommerce/)
**Key Features:**
* Log in as any WooCommerce customer without a password.
* One-click switch back to your admin account.
* Test customer accounts, carts, and checkout processes.
* Works with WooCommerce customers and standard WordPress users.
* Lightweight, secure, and user-friendly.

**Requirements:**
* WordPress 6.0 or higher
* WooCommerce 7.0 or higher

**Note:** If WooCommerce is not installed or active, the plugin will display a notice in the admin dashboard.

== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the “Plugins” menu in WordPress.
3. Ensure WooCommerce is installed and activated.
4. Navigate to Users, then click the 'Login as Customer' button in the 'Login as Customer' column to switch accounts.

== Frequently Asked Questions ==

= Can I log in as any WordPress user? =
Yes, the plugin works with standard WordPress users, but WooCommerce customers are fully supported.

= Is this safe to use? =
Absolutely. Admin credentials are never exposed, and switching back is instant and secure.

= Does it work with WooCommerce Subscriptions or Memberships? =
Yes, it allows you to view customer accounts with all their WooCommerce data.

== Screenshots ==
1. Admin Users table showing "Login As Customer" button.
2. WooCommerce My Account page after switching.
3. Return back to admin dashboard with one click.
4. Buy Me a Coffee support notice in admin dashboard.

== Changelog ==

= 1.0.1 =
* All plugin code rewritten for improved security and code quality.
* Added nonce verification to AJAX dismissal of the "Buy Me a Coffee" notice.
* Ensured all output strings are properly escaped to prevent XSS vulnerabilities.
* Switched "Login as Customer" button from JS-submitted form to a conventional link.

= 1.0.0 =
* Initial release
* Log in as WooCommerce customer without password
* Switch back to admin account instantly
* Admin notice if WooCommerce is inactive

== Upgrade Notice ==

= 1.0.1 =
Security and stability update. Highly recommended to update.

= 1.0.0 =
Initial release.
