{"id":68033,"date":"2012-01-03T12:00:55","date_gmt":"2012-01-03T17:00:55","guid":{"rendered":"http:\/\/wpmu.org\/?p=68033"},"modified":"2012-01-03T14:06:42","modified_gmt":"2012-01-03T19:06:42","slug":"switch-between-wordpress-users-great-for-testing","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/switch-between-wordpress-users-great-for-testing\/","title":{"rendered":"Switch between WordPress Users \u2013 Great for Testing"},"content":{"rendered":"<p><a rel=\"lightbox[68033]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/switch-between-wordpress-users-great-for-testing\/network-big\/\" rel=\"attachment wp-att-68035\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-68035\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/01\/network-big.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"634\" height=\"551\" \/><\/a><br \/>\nWhen setting up a site or trying out new plugins or functionality, a WordPress administrator is constantly switching between being the Admin and being lower-level users. Of course you want to make sure everything works as it\u2019s supposed to for each level of user.<\/p>\n<p>I usually manage this by logging into one browser as the Admin and another browser as a lower-level user. But eventually all browsers will need to be tested, and all user types will need to be tested.<\/p>\n<p>It would be nice to be able to switch to a different level user in an easier way.<\/p>\n<p>Enter the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/user-switching\/\" target=\"_blank\">User Switching<\/a> plugin.<\/p>\n<p>&nbsp;<\/p>\n<p><a rel=\"lightbox[68033]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/switch-between-wordpress-users-great-for-testing\/settings-user-switching\/\" rel=\"attachment wp-att-68037\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-68037\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/01\/settings-user-switching.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"629\" height=\"484\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>And while this is perfect for testing, it is not limited to that. As an administrator, you can switch to any user on your site. It also works with Multisite and BuddyPress.<\/p>\n<p>A few important aspects to take note of:<\/p>\n<ul>\n<li>Only Administrators can switch between accounts<\/li>\n<li>Passwords of users are not revealed<\/li>\n<li>A cookie gives you the ability to log out of your account but switch back again<\/li>\n<li>A \u201cswitch back\u201d link is conveniently located at the top of all Admin pages<\/li>\n<li>When you switch back, a message appears at the top letting you know you\u2019ve done so to avoid confusion<\/li>\n<\/ul>\n<p>You can find the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/user-switching\/\" rel=\"noopener\" target=\"_blank\">User Switching plugin here<\/a>.<\/p>\n\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-15599084\/stock-vector-user-networ\" target=\"_blank\">user network<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As an administrator, easily pretend to be any other user on your site.<\/p>\n","protected":false},"author":84404,"featured_media":68036,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[300],"tutorials_categories":[],"class_list":["post-68033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-users"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/68033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=68033"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/68033\/revisions"}],"predecessor-version":[{"id":216244,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/68033\/revisions\/216244"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/68036"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=68033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=68033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=68033"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=68033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}