{"id":324771,"date":"2026-09-01T04:37:48","date_gmt":"2026-09-01T04:37:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/viby-ai\/"},"modified":"2026-09-01T04:37:16","modified_gmt":"2026-09-01T04:37:16","slug":"pinswitch-user-switcher","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/pinswitch-user-switcher\/","author":23144673,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.1","stable_tag":"1.2.1","tested":"7.1","requires":"6.2","requires_php":"8.0","requires_plugins":null,"header_name":"PinSwitch User Switcher","header_author":"jawad0501","header_description":"Pin test users and switch between accounts in one click while developing WordPress plugins.","assets_banners_color":"cbccce","last_updated":"2026-09-01 04:37:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/Jawad0501\/pinswitch-user-switcher","header_author_uri":"https:\/\/profiles.wordpress.org\/jawad0501\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":66,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.2.1":{"tag":"1.2.1","author":"jawad0501","date":"2026-09-01 04:37:16","revision":3675259}},"upgrade_notice":{"1.2.1":"<p>Uses WordPress script enqueue APIs for the user edit Switch To button.<\/p>","1.2.0":"<p>Renamed to PinSwitch User Switcher. Re-activate after updating the plugin folder\/slug.<\/p>","1.1.5":"<p>Fixes the admin bar user list failing to load.<\/p>","1.1.4":"<p>User emails in the Switch User panel no longer get cut off.<\/p>","1.1.3":"<p>Switch User panel opens on hover; clicking a user opens their profile.<\/p>","1.1.2":"<p>Switch Off is now available in the profile menu on the top-right admin bar.<\/p>","1.1.1":"<p>Switch Off and switch-back links now work when testing as non-admin roles on the frontend.<\/p>","1.1.0":"<p>The settings page is removed. Pin and unpin users from the Users list or the admin bar All users tab.<\/p>","1.0.6":"<p>Switch To button on user edit screens now appears next to Add User.<\/p>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3675259,"resolution":"256x256","location":"assets","locale":"","width":1254,"height":1254}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3675259,"resolution":"772x250","location":"assets","locale":"","width":2203,"height":714}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3675259,"resolution":"1","location":"assets","locale":"","width":2706,"height":1646},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3675259,"resolution":"2","location":"assets","locale":"","width":760,"height":808},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3675259,"resolution":"3","location":"assets","locale":"","width":760,"height":802}},"screenshots":{"1":"Admin bar Switch User panel with Pinned and All users tabs","2":"Switch To button on user edit screen"}},"plugin_section":[],"plugin_tags":[1913,734,1915,1591,3749],"plugin_category":[58],"plugin_contributors":[243032],"plugin_business_model":[],"class_list":["post-324771","plugin","type-plugin","status-publish","hentry","plugin_tags-capabilities","plugin_tags-development","plugin_tags-roles","plugin_tags-testing","plugin_tags-user-switching","plugin_category-user-management","plugin_contributors-jawad0501","plugin_committers-jawad0501"],"banners":{"banner":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/banner-772x250.png?rev=3675259","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/icon-256x256.png?rev=3675259","icon_2x":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/icon-256x256.png?rev=3675259","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/screenshot-1.png?rev=3675259","caption":"Admin bar Switch User panel with Pinned and All users tabs"},{"src":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/screenshot-2.png?rev=3675259","caption":"Switch To button on user edit screen"},{"src":"https:\/\/ps.w.org\/pinswitch-user-switcher\/assets\/screenshot-3.png?rev=3675259","caption":""}],"raw_content":"<!--section=description-->\n<p>PinSwitch User Switcher helps plugin developers test role-based behavior without repeatedly hunting through the Users screen.<\/p>\n\n<p>When you are building a plugin, you often need to jump between an admin account and a handful of fixed test users (Editor, Subscriber, Customer, etc.). Existing user switching plugins work, but they still make you find the same accounts in the user list every time. PinSwitch User Switcher adds a pinning layer on top of a complete, standalone switching implementation.<\/p>\n\n<h4>Switching<\/h4>\n\n<ul>\n<li><strong>Switch To<\/strong> \u2014 log in as another user instantly<\/li>\n<li><strong>Switch Back<\/strong> \u2014 return to your original account<\/li>\n<li><strong>Switch Off<\/strong> \u2014 log out while keeping the ability to switch back<\/li>\n<li>Standalone auth-cookie and session-token implementation (no dependency on User Switching or similar plugins)<\/li>\n<li>Smart redirects after switching \u2014 if the target user cannot access the page you were on, they are sent to the dashboard or homepage instead of an unauthorized error<\/li>\n<\/ul>\n\n<h4>Pinning<\/h4>\n\n<ul>\n<li>Pin or unpin users from the <strong>Users<\/strong> list row actions or the admin bar <strong>All users<\/strong> tab<\/li>\n<li>Pins are stored per admin in usermeta (no custom database tables)<\/li>\n<\/ul>\n\n<h4>Admin bar panel<\/h4>\n\n<ul>\n<li><strong>Switch User<\/strong> menu on all wp-admin screens \u2014 opens on hover<\/li>\n<li><strong>Pinned<\/strong> and <strong>All users<\/strong> tabs<\/li>\n<li>Search all users by username or email<\/li>\n<li>Infinite scroll loading (20 users at a time)<\/li>\n<li>Each row shows avatar, name, role, login, email, and a <strong>Switch To<\/strong> action<\/li>\n<li>Click a user row to open their profile; use <strong>Switch To<\/strong> to switch accounts<\/li>\n<li>Fixed-height, scrollable panel (no full-screen dropdown)<\/li>\n<\/ul>\n\n<h4>Profile &amp; user screens<\/h4>\n\n<ul>\n<li><strong>Switch To<\/strong> button on every user edit screen (next to <strong>Add User<\/strong>)<\/li>\n<li><strong>Switch To<\/strong> button in the Personal Options section of user profiles<\/li>\n<\/ul>\n\n<h4>Permissions<\/h4>\n\n<p>Users with the <code>edit_users<\/code> capability can pin users and switch accounts. Switch back uses cookie authentication and does not require the switched-in user to have elevated capabilities.<\/p>\n\n<p>PinSwitch User Switcher is intentionally small: no audit log, no multisite-specific code, no CLI, no REST API layer, and no dependency on other switching plugins.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to <code>\/wp-content\/plugins\/pinswitch-user-switcher<\/code>, or install through the WordPress plugins screen.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen.<\/li>\n<li>Go to <strong>Users<\/strong>, pin your test accounts using the <strong>Pin<\/strong> row action.<\/li>\n<li>During testing, open <strong>Switch User<\/strong> from the admin bar and click a pinned account.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"who%20can%20use%20pinswitch%20user%20switcher%3F\"><h3>Who can use PinSwitch User Switcher?<\/h3><\/dt>\n<dd><p>Users with the <code>edit_users<\/code> capability can pin users, open the Switch User panel, and switch into other accounts.<\/p><\/dd>\n<dt id=\"does%20this%20replace%20user%20switching%3F\"><h3>Does this replace User Switching?<\/h3><\/dt>\n<dd><p>Yes. PinSwitch User Switcher is standalone. It implements its own switch-to, switch-back, and switch-off flow using WordPress auth cookies and session tokens, so you do not need another switching plugin installed.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20switch%20to%20a%20user%20who%20cannot%20access%20the%20current%20admin%20page%3F\"><h3>What happens if I switch to a user who cannot access the current admin page?<\/h3><\/dt>\n<dd><p>PinSwitch User Switcher checks whether the switched-in user can access the page you were on. If not, they are redirected to the admin dashboard (if they have admin access) or the site homepage \u2014 not an \"Sorry, you are not allowed\" error screen.<\/p><\/dd>\n<dt id=\"are%20pins%20shared%20between%20admins%3F\"><h3>Are pins shared between admins?<\/h3><\/dt>\n<dd><p>No. Pins are stored against your own user account and are visible only to you.<\/p><\/dd>\n<dt id=\"does%20pinswitch%20user%20switcher%20work%20on%20multisite%3F\"><h3>Does PinSwitch User Switcher work on Multisite?<\/h3><\/dt>\n<dd><p>Multisite is not a priority for v1. It may work incidentally but is not tested or supported.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Enqueue user-edit Switch To script via wp_enqueue_script instead of an inline script tag<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Rename plugin to PinSwitch User Switcher (slug: pinswitch-user-switcher)<\/li>\n<li>Migrate pinned users from the former QuickSwitch usermeta key<\/li>\n<\/ul>\n\n<h4>1.1.5<\/h4>\n\n<ul>\n<li>Fix admin bar panel JavaScript error that showed \"No users found\"<\/li>\n<\/ul>\n\n<h4>1.1.4<\/h4>\n\n<ul>\n<li>Show login and email on separate lines so long addresses are not truncated<\/li>\n<\/ul>\n\n<h4>1.1.3<\/h4>\n\n<ul>\n<li>Open Switch User panel on hover instead of click<\/li>\n<li>Compact admin bar panel layout with email and role per user<\/li>\n<li>Click a user row to open their profile; use Switch To to switch accounts<\/li>\n<\/ul>\n\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Add Switch Off to the admin bar profile menu when logged in as admin (not while switched)<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Show Switch Off for any switched user, not only accounts with edit_users<\/li>\n<li>Add switch-back links on the login screen, site footer, and Meta widget after Switch Off<\/li>\n<li>Allow switch back while logged out via admin-post nopriv handler<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Remove Users \u2192 PinSwitch User Switcher settings page; pin and unpin from the Users list or admin bar panel<\/li>\n<li>Show pin\/unpin success notices globally in wp-admin<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Place Switch To header button to the right of Add User on user edit screens<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Add Switch To button on user profile edit screens (header and Personal Options table)<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Redirect switched-in users to a safe fallback when they cannot access the current admin page<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fix expired nonce \/ \"link has expired\" errors on switch links from the admin bar panel<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Clear list immediately on tab switch and search; show loading state only while fetching<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Replace native admin bar submenu with custom scrollable panel (tabs, search, infinite scroll)<\/li>\n<li>Redesign Users \u2192 PinSwitch User Switcher settings page empty state and pin table<\/li>\n<li>Fix admin bar layout conflicts with WordPress core styles<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release: standalone switching, pinning, admin bar menu, settings page, Users list row actions<\/li>\n<\/ul>","raw_excerpt":"Pin test users and switch between WordPress accounts in one click while developing plugins.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/324771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=324771"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jawad0501"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=324771"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=324771"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=324771"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=324771"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=324771"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=324771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}