=== Login as User – Switch User & WooCommerce Login as Customer ===
Contributors: royalnavneet
Tags: login as user, login user without password, switch user, user switching, login as customer, woocommerce login as customer, user impersonation, admin login as user, user switch plugin
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Login as User plugin allows administrators to login as user, login user without password, switch user accounts, and login as customer in WooCommerce instantly and securely.

== Description ==

**Login as User** is a powerful WordPress user switch plugin that allows administrators to login as user, login user without password, and switch user accounts instantly.

With this Login as User plugin, you can:

– Login as user in WordPress  
– Login user without password  
– Switch user without password  
– Perform secure user impersonation  
– Login as customer in WooCommerce  
– Return to admin with one click  

If you provide customer support, manage memberships, or run an eCommerce store, this plugin helps you securely login as user and troubleshoot issues without asking for user credentials.

Unlike unsafe methods, this plugin ensures secure user switching using WordPress permission checks and nonce verification.

=== Why Use Login as User? ===

• Secure login as user without password  
• Instant WordPress user switching  
• WooCommerce login as customer  
• Switch WordPress user sessions safely  
• Admin login as user tool  
• Return to Admin button on frontend and backend  
• Lightweight and performance optimized  
• Works with custom user roles  

This WordPress user switch plugin is perfect for developers, agencies, WooCommerce store owners, and support teams.

== Key Features (FREE) ==

- One-click Login as User button in Users list
- Login as User directly from user profile
- Secure session switching
- Floating "Return to Admin" button
- Prevent login-as-self for safety
- Compatible with WordPress 6.x
- Fast and lightweight user switch plugin

== PRO Features ==

- WooCommerce login as customer from orders page
- Login as customer without password
- Role-based login as user permissions
- Shortcode for frontend login as user button
- MemberPress integration
- SureCart integration
- Priority updates and support

== Supported Integrations ==

- WooCommerce
- SureCart
- MemberPress
- Custom user roles
- Any WordPress-based membership system

== Installation ==

1. Upload the plugin to `/wp-content/plugins/login-as-user`
2. Activate the plugin via the Plugins screen
3. Go to Users → Click “Login as User”
4. Instantly switch user accounts
5. Use the Return to Admin button to switch back

== Frequently Asked Questions ==

= What is the Login as User plugin? =

Login as User is a WordPress user switch plugin that allows administrators to login as user, login user without password, and securely switch user accounts.

= Can I login user without password? =

Yes. This plugin allows you to login user without password securely using WordPress authentication and capability checks.

= Is login as user without password safe? =

Yes. Only administrators (or allowed roles in Pro) can login as user without password. All actions use secure nonce validation and permission verification.

= Can I switch user without password? =

Yes. You can switch user without password directly from the Users list or user profile page.

= Can I login as customer in WooCommerce? =

Yes. The Pro version enables WooCommerce login as customer directly from the order page.

= Can I return to my admin account after login as user? =

Yes. A floating Return to Admin button appears when impersonating another user.

= Does this plugin support user impersonation? =

Yes. This plugin provides secure WordPress user impersonation for troubleshooting and support.

= Can I login as subscriber, editor, or shop manager? =

Yes. You can login as user for any WordPress role including subscriber, editor, shop manager, and customer.

== Screenshots ==

1. Login as User button in Users list
2. Login as User from profile page
3. Floating Return to Admin button
4. WooCommerce login as customer integration

== Changelog ==

= 1.0.2 =
* Improved secure login as user without password
* Performance enhancements
* Minor UI improvements

= 1.0.1 =
* Security improvements for user switching
* Better compatibility with WooCommerce

= 1.0.0 =
* Initial release
* Login as user functionality
* WooCommerce login as customer (Pro)
* Role-based login permissions

== Upgrade Notice ==

= 1.0.2 =
Improved security and user switching performance. Update recommended.